Initial commit
Some checks failed
Build Kernel / Build all affected Kernels (push) Has been cancelled
Build all core packages / Build all core packages for selected target (push) Has been cancelled
Build and Push prebuilt tools container / Build and Push all prebuilt containers (push) Has been cancelled
Build Toolchains / Build Toolchains for each target (push) Has been cancelled
Build host tools / Build host tools for linux and macos based systems (push) Has been cancelled
Coverity scan build / Coverity x86/64 build (push) Has been cancelled
Some checks failed
Build Kernel / Build all affected Kernels (push) Has been cancelled
Build all core packages / Build all core packages for selected target (push) Has been cancelled
Build and Push prebuilt tools container / Build and Push all prebuilt containers (push) Has been cancelled
Build Toolchains / Build Toolchains for each target (push) Has been cancelled
Build host tools / Build host tools for linux and macos based systems (push) Has been cancelled
Coverity scan build / Coverity x86/64 build (push) Has been cancelled
This commit is contained in:
57
target/linux/ramips/image/common-tp-link.mk
Normal file
57
target/linux/ramips/image/common-tp-link.mk
Normal file
@@ -0,0 +1,57 @@
|
||||
DEVICE_VARS += TPLINK_FLASHLAYOUT TPLINK_HWID TPLINK_HWREV TPLINK_HWREVADD
|
||||
DEVICE_VARS += TPLINK_HVERSION TPLINK_BOARD_ID TPLINK_HEADER_VERSION
|
||||
|
||||
define Build/uImage-tplink-c9
|
||||
mkimage \
|
||||
-A $(LINUX_KARCH) \
|
||||
-O linux \
|
||||
-T $(word 1,$(1)) \
|
||||
-C none \
|
||||
-a $(KERNEL_LOADADDR) \
|
||||
-e $(KERNEL_LOADADDR) \
|
||||
-n $(wordlist 2,$(words $(1)),$(1)) \
|
||||
-d $@ $@.new
|
||||
mv $@.new $@
|
||||
endef
|
||||
|
||||
define Device/tplink-v1
|
||||
DEVICE_VENDOR := TP-Link
|
||||
TPLINK_FLASHLAYOUT :=
|
||||
TPLINK_HWID :=
|
||||
TPLINK_HWREV := 0x1
|
||||
TPLINK_HEADER_VERSION := 1
|
||||
KERNEL := $(KERNEL_DTB)
|
||||
KERNEL_INITRAMFS := $(KERNEL_DTB) | tplink-v1-header -e -O
|
||||
IMAGES += factory.bin
|
||||
IMAGE/factory.bin := tplink-v1-image factory -e -O
|
||||
IMAGE/sysupgrade.bin := tplink-v1-image sysupgrade -e -O | check-size | \
|
||||
append-metadata
|
||||
endef
|
||||
|
||||
define Device/tplink-v2
|
||||
DEVICE_VENDOR := TP-Link
|
||||
TPLINK_FLASHLAYOUT :=
|
||||
TPLINK_HWID :=
|
||||
TPLINK_HWREV := 0x1
|
||||
TPLINK_HWREVADD := 0x0
|
||||
TPLINK_HVERSION := 3
|
||||
KERNEL := $(KERNEL_DTB)
|
||||
KERNEL_INITRAMFS := $(KERNEL_DTB) | tplink-v2-header -e
|
||||
IMAGES += factory.bin
|
||||
IMAGE/factory.bin := tplink-v2-image -e
|
||||
IMAGE/sysupgrade.bin := tplink-v2-image -s -e | check-size | \
|
||||
append-metadata
|
||||
endef
|
||||
|
||||
define Device/tplink-safeloader
|
||||
DEVICE_VENDOR := TP-Link
|
||||
TPLINK_BOARD_ID :=
|
||||
TPLINK_HWID := 0x0
|
||||
TPLINK_HWREV := 0x0
|
||||
TPLINK_HEADER_VERSION := 1
|
||||
KERNEL := $(KERNEL_DTB) | tplink-v1-header -e -O
|
||||
IMAGES += factory.bin
|
||||
IMAGE/sysupgrade.bin := append-rootfs | tplink-safeloader sysupgrade | \
|
||||
check-size | append-metadata
|
||||
IMAGE/factory.bin := append-rootfs | tplink-safeloader factory
|
||||
endef
|
||||
Reference in New Issue
Block a user