From 5b392c7119f23aef10ffc0def9a70e8335f9f3f8 Mon Sep 17 00:00:00 2001 From: Sungbo Eo Date: Tue, 10 Mar 2020 15:41:09 +0900 Subject: treewide: gather DEVICE_VARS into one place Place DEVICE_VARS assignments at the top of the file or above Device/Default to make them easier to find. For ramips, remove redundant values already present in parent file. Signed-off-by: Sungbo Eo [do not touch ar71xx, extend commit message] Signed-off-by: Adrian Schmutzler --- target/linux/lantiq/image/Makefile | 2 +- target/linux/lantiq/image/vr9.mk | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) (limited to 'target/linux/lantiq/image') diff --git a/target/linux/lantiq/image/Makefile b/target/linux/lantiq/image/Makefile index 0ec04af6b3..87a4110f7e 100644 --- a/target/linux/lantiq/image/Makefile +++ b/target/linux/lantiq/image/Makefile @@ -52,6 +52,7 @@ define Build/fullimage rm $@.tmp endef +DEVICE_VARS += SIGNATURE MAGIC CRC32_POLY DTS_DIR := $(DTS_DIR)/lantiq # Shared device definition: applies to every defined device @@ -93,7 +94,6 @@ define Device/lantiqBrnImage IMAGES := factory.bin IMAGE/factory.bin := mkbrnimg | check-size $$$$(IMAGE_SIZE) endef -DEVICE_VARS += SIGNATURE MAGIC CRC32_POLY define Device/lantiqFullImage KERNEL := kernel-bin | append-dtb | lzma | uImage lzma | pad-offset 4 0 diff --git a/target/linux/lantiq/image/vr9.mk b/target/linux/lantiq/image/vr9.mk index 083d8efe0f..2bea40011d 100644 --- a/target/linux/lantiq/image/vr9.mk +++ b/target/linux/lantiq/image/vr9.mk @@ -1,3 +1,5 @@ +DEVICE_VARS += NETGEAR_BOARD_ID NETGEAR_HW_ID + define Device/alphanetworks_asl56026 DEVICE_VENDOR := Alpha DEVICE_MODEL := ASL56026 @@ -199,7 +201,6 @@ define Device/netgear_dm200 NETGEAR_BOARD_ID := DM200 NETGEAR_HW_ID := 29765233+8+0+64+0+0 endef -DEVICE_VARS += NETGEAR_BOARD_ID NETGEAR_HW_ID TARGET_DEVICES += netgear_dm200 define Device/zyxel_p-2812hnu-f1 -- cgit v1.2.3