diff options
author | Mathias Kresin <dev@kresin.me> | 2018-07-12 06:29:43 +0200 |
---|---|---|
committer | Mathias Kresin <dev@kresin.me> | 2018-07-12 18:15:19 +0200 |
commit | 621fa91a8295b50dfdfac22290200064afaeec4e (patch) | |
tree | 5530a6c5c0fd8979a0b5f0c36565334084c3bebe /target/linux/ar71xx/image | |
parent | 671999157d6cd0b629304f86beec7d71fc998b09 (diff) | |
download | upstream-621fa91a8295b50dfdfac22290200064afaeec4e.tar.gz upstream-621fa91a8295b50dfdfac22290200064afaeec4e.tar.bz2 upstream-621fa91a8295b50dfdfac22290200064afaeec4e.zip |
ar71xx: move boards to tiny subtarget
Move boards to the tiny subtarget which break the build if the kernel is
set to "Optimize for performance".
Signed-off-by: Mathias Kresin <dev@kresin.me>
Diffstat (limited to 'target/linux/ar71xx/image')
-rw-r--r-- | target/linux/ar71xx/image/Makefile | 1 | ||||
-rw-r--r-- | target/linux/ar71xx/image/generic.mk | 33 | ||||
-rw-r--r-- | target/linux/ar71xx/image/tiny.mk | 33 |
3 files changed, 34 insertions, 33 deletions
diff --git a/target/linux/ar71xx/image/Makefile b/target/linux/ar71xx/image/Makefile index 1eaf1e457c..c429eb39d9 100644 --- a/target/linux/ar71xx/image/Makefile +++ b/target/linux/ar71xx/image/Makefile @@ -20,6 +20,7 @@ include ./generic-tp-link.mk include ./generic-ubnt.mk endif ifeq ($(SUBTARGET),tiny) +include ./tiny.mk include ./tiny-tp-link.mk include ./tiny-legacy-devices.mk endif diff --git a/target/linux/ar71xx/image/generic.mk b/target/linux/ar71xx/image/generic.mk index 613bec8426..0ff0850621 100644 --- a/target/linux/ar71xx/image/generic.mk +++ b/target/linux/ar71xx/image/generic.mk @@ -16,14 +16,6 @@ define Build/append-string echo -n $(1) >> $@ endef -define Build/mkbuffaloimg - $(STAGING_DIR_HOST)/bin/mkbuffaloimg -B $(BOARDNAME) \ - -R $$(($(subst k, * 1024,$(ROOTFS_SIZE)))) \ - -K $$(($(subst k, * 1024,$(KERNEL_SIZE)))) \ - -i $@ -o $@.new - mv $@.new $@ -endef - define Build/mkwrggimg $(STAGING_DIR_HOST)/bin/mkwrggimg -b \ -i $@ -o $@.imghdr -d /dev/mtdblock/1 \ @@ -1190,19 +1182,6 @@ define Device/dap-2695-a1 endef TARGET_DEVICES += dap-2695-a1 -define Device/bhr-4grv2 - DEVICE_TITLE := Buffalo BHR-4GRV2 - BOARDNAME := BHR-4GRV2 - ROOTFS_SIZE := 14528k - KERNEL_SIZE := 1472k - IMAGE_SIZE := 16000k - MTDPARTS := spi0.0:256k(u-boot)ro,64k(u-boot-env)ro,14528k(rootfs),1472k(kernel),64k(art)ro,16000k@0x50000(firmware) - IMAGES := sysupgrade.bin factory.bin - IMAGE/sysupgrade.bin := append-rootfs | pad-rootfs | pad-to $$$$(ROOTFS_SIZE) | append-kernel | check-size $$$$(IMAGE_SIZE) - IMAGE/factory.bin := append-kernel | pad-to $$$$(KERNEL_SIZE) | append-rootfs | pad-rootfs | mkbuffaloimg -endef -TARGET_DEVICES += bhr-4grv2 - define Device/wam250 DEVICE_TITLE := Samsung WAM250 DEVICE_PACKAGES := kmod-usb-core kmod-usb2 -swconfig @@ -1294,18 +1273,6 @@ define Device/wrtnode2q endef TARGET_DEVICES += wrtnode2q -define Device/zbt-we1526 - DEVICE_TITLE := Zbtlink ZBT-WE1526 - DEVICE_PACKAGES := kmod-usb-core kmod-usb2 - BOARDNAME := ZBT-WE1526 - IMAGE_SIZE := 16000k - KERNEL_SIZE := 1472k - ROOTFS_SIZE := 14528k - MTDPARTS := spi0.0:256k(u-boot)ro,64k(u-boot-env)ro,14528k(rootfs),1472k(kernel),64k(art)ro,16000k@0x50000(firmware) - IMAGE/sysupgrade.bin := append-rootfs | pad-rootfs | pad-to $$$$(ROOTFS_SIZE) | append-kernel | check-size $$$$(IMAGE_SIZE) -endef -TARGET_DEVICES += zbt-we1526 - define Device/AVM DEVICE_PACKAGES := fritz-tffs -uboot-envtools KERNEL := kernel-bin | patch-cmdline | lzma | eva-image diff --git a/target/linux/ar71xx/image/tiny.mk b/target/linux/ar71xx/image/tiny.mk new file mode 100644 index 0000000000..d96a7cd92d --- /dev/null +++ b/target/linux/ar71xx/image/tiny.mk @@ -0,0 +1,33 @@ +define Build/mkbuffaloimg + $(STAGING_DIR_HOST)/bin/mkbuffaloimg -B $(BOARDNAME) \ + -R $$(($(subst k, * 1024,$(ROOTFS_SIZE)))) \ + -K $$(($(subst k, * 1024,$(KERNEL_SIZE)))) \ + -i $@ -o $@.new + mv $@.new $@ +endef + + +define Device/bhr-4grv2 + DEVICE_TITLE := Buffalo BHR-4GRV2 + BOARDNAME := BHR-4GRV2 + ROOTFS_SIZE := 14528k + KERNEL_SIZE := 1472k + IMAGE_SIZE := 16000k + MTDPARTS := spi0.0:256k(u-boot)ro,64k(u-boot-env)ro,14528k(rootfs),1472k(kernel),64k(art)ro,16000k@0x50000(firmware) + IMAGES := sysupgrade.bin factory.bin + IMAGE/sysupgrade.bin := append-rootfs | pad-rootfs | pad-to $$$$(ROOTFS_SIZE) | append-kernel | check-size $$$$(IMAGE_SIZE) + IMAGE/factory.bin := append-kernel | pad-to $$$$(KERNEL_SIZE) | append-rootfs | pad-rootfs | mkbuffaloimg +endef +TARGET_DEVICES += bhr-4grv2 + +define Device/zbt-we1526 + DEVICE_TITLE := Zbtlink ZBT-WE1526 + DEVICE_PACKAGES := kmod-usb-core kmod-usb2 + BOARDNAME := ZBT-WE1526 + IMAGE_SIZE := 16000k + KERNEL_SIZE := 1472k + ROOTFS_SIZE := 14528k + MTDPARTS := spi0.0:256k(u-boot)ro,64k(u-boot-env)ro,14528k(rootfs),1472k(kernel),64k(art)ro,16000k@0x50000(firmware) + IMAGE/sysupgrade.bin := append-rootfs | pad-rootfs | pad-to $$$$(ROOTFS_SIZE) | append-kernel | check-size $$$$(IMAGE_SIZE) +endef +TARGET_DEVICES += zbt-we1526
\ No newline at end of file |