aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ath79/image/Makefile
diff options
context:
space:
mode:
authorMathias Kresin <dev@kresin.me>2018-05-07 21:09:44 +0200
committerMathias Kresin <dev@kresin.me>2018-05-17 07:40:19 +0200
commitf77db1a59036d896139e6cddcdb62bf38f2f9ff6 (patch)
tree34a92eb4c34371b03e8ea4fb14433d697eb1ea5e /target/linux/ath79/image/Makefile
parentcfe442c5033d3fe626bb54391ecb0fc25c2f5049 (diff)
downloadupstream-f77db1a59036d896139e6cddcdb62bf38f2f9ff6.tar.gz
upstream-f77db1a59036d896139e6cddcdb62bf38f2f9ff6.tar.bz2
upstream-f77db1a59036d896139e6cddcdb62bf38f2f9ff6.zip
ath79: cleanup image build code
Remove recipes for not yet migrated boards. Drop variables which aren't required due to the switch to devicetree like boardname. Drop the legacy image build code. Boards added to this target shouldn't use the legacy image build code anyway. Signed-off-by: Mathias Kresin <dev@kresin.me>
Diffstat (limited to 'target/linux/ath79/image/Makefile')
-rw-r--r--target/linux/ath79/image/Makefile15
1 files changed, 5 insertions, 10 deletions
diff --git a/target/linux/ath79/image/Makefile b/target/linux/ath79/image/Makefile
index cc71c31997..9c789d4e0f 100644
--- a/target/linux/ath79/image/Makefile
+++ b/target/linux/ath79/image/Makefile
@@ -3,14 +3,13 @@ include $(INCLUDE_DIR)/image.mk
KERNEL_LOADADDR = 0x80060000
-DEVICE_VARS += CMDLINE CONSOLE IMAGE_SIZE BOARDNAME LOADER_FLASH_OFFS LOADER_TYPE ATH_SOC
+DEVICE_VARS += IMAGE_SIZE LOADER_FLASH_OFFS LOADER_TYPE ATH_SOC
define Build/loader-common
rm -rf $@.src
$(MAKE) -C lzma-loader \
PKG_BUILD_DIR="$@.src" \
TARGET_DIR="$(dir $@)" LOADER_NAME="$(notdir $@)" \
- BOARD="$(BOARDNAME)" \
LZMA_TEXT_START=0x80a00000 LOADADDR=0x80060000 \
$(1) compile loader.$(LOADER_TYPE)
mv "$@.$(LOADER_TYPE)" "$@"
@@ -22,12 +21,12 @@ define Build/loader-kernel
endef
define Build/loader-kernel-cmdline
- $(call Build/loader-common,LOADER_DATA="$@" KERNEL_CMDLINE="$(CMDLINE)")
+ $(call Build/loader-common,LOADER_DATA="$@")
endef
define Build/loader-okli-compile
- $(call Build/loader-common,FLASH_OFFS=$(LOADER_FLASH_OFFS) FLASH_MAX=0 KERNEL_CMDLINE="$(CMDLINE)")
+ $(call Build/loader-common,FLASH_OFFS=$(LOADER_FLASH_OFFS) FLASH_MAX=0)
endef
define Build/loader-okli
@@ -55,15 +54,11 @@ endef
define Device/Default
ATH_SOC :=
- BOARDNAME :=
- DEVICE_PROFILE = $$(BOARDNAME)
DEVICE_DTS_DIR := ../dts
DEVICE_DTS = $$(ATH_SOC)_$(1)
- PROFILES = Default Minimal $$(DEVICE_PROFILE)
+ PROFILES = Default
MTDPARTS :=
BLOCKSIZE := 64k
- CONSOLE = ttyS0,115200
- CMDLINE = $$(if $$(BOARDNAME),board=$$(BOARDNAME)) $$(if $$(MTDPARTS),mtdparts=$$(MTDPARTS)) $$(if $$(CONSOLE),console=$$(CONSOLE))
KERNEL := kernel-bin | append-dtb | lzma | uImage lzma
KERNEL_INITRAMFS := kernel-bin | append-dtb | lzma | uImage lzma
COMPILE :=
@@ -72,8 +67,8 @@ define Device/Default
endef
ifeq ($(SUBTARGET),generic)
-include ./tp-link.mk
include ./generic.mk
+include ./generic-tp-link.mk
include ./generic-ubnt.mk
endif
$(eval $(call BuildImage))