aboutsummaryrefslogtreecommitdiffstats
path: root/target
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@nbd.name>2016-05-22 23:10:54 +0200
committerFelix Fietkau <nbd@nbd.name>2016-05-23 12:19:22 +0200
commitf85e5e6778f39b1ea6ca327d1058c46f7f6cd656 (patch)
tree820f5b7f65e8a1eb467685a6988bbb39bb10d1c3 /target
parentdcc2ea3cf59a8a6b3da5c152af3b38c561c53710 (diff)
downloadupstream-f85e5e6778f39b1ea6ca327d1058c46f7f6cd656.tar.gz
upstream-f85e5e6778f39b1ea6ca327d1058c46f7f6cd656.tar.bz2
upstream-f85e5e6778f39b1ea6ca327d1058c46f7f6cd656.zip
ar71xx: move nand device image definitions to a separate file
Signed-off-by: Felix Fietkau <nbd@nbd.name>
Diffstat (limited to 'target')
-rw-r--r--target/linux/ar71xx/image/Makefile27
-rw-r--r--target/linux/ar71xx/image/nand.mk19
2 files changed, 22 insertions, 24 deletions
diff --git a/target/linux/ar71xx/image/Makefile b/target/linux/ar71xx/image/Makefile
index 9209aa8d9f..2380a62cb4 100644
--- a/target/linux/ar71xx/image/Makefile
+++ b/target/linux/ar71xx/image/Makefile
@@ -21,6 +21,9 @@ include ./tp-link.mk
include ./ubnt.mk
include ./generic.mk
endif
+ifeq ($(SUBTARGET),nand)
+include ./nand.mk
+endif
include ./legacy.mk
define Build/netgear-squashfs
@@ -96,28 +99,4 @@ define Device/Default
IMAGE/sysupgrade.bin = append-kernel $$$$(BLOCKSIZE) | append-rootfs | pad-rootfs | check-size $$$$(IMAGE_SIZE)
endef
-ifeq ($(SUBTARGET),nand)
-
-define Build/MerakiNAND
- -$(STAGING_DIR_HOST)/bin/mkmerakifw \
- -B $(BOARDNAME) -s \
- -i $@ \
- -o $@.new
- @mv $@.new $@
-endef
-
-define Device/mr18
- BOARDNAME = MR18
- BLOCKSIZE := 64k
- CONSOLE = ttyS0,115200
- MTDPARTS = ar934x-nfc:512k(nandloader)ro,8M(kernel),8M(recovery),113664k(ubi),128k@130944k(odm-caldata)ro
- IMAGES := sysupgrade.tar
- KERNEL := kernel-bin | patch-cmdline | MerakiNAND
- KERNEL_INITRAMFS := kernel-bin | patch-cmdline | MerakiNAND
- IMAGE/sysupgrade.tar := sysupgrade-nand
-endef
-TARGET_DEVICES += mr18
-
-endif # ifeq ($(SUBTARGET),nand)
-
$(eval $(call BuildImage))
diff --git a/target/linux/ar71xx/image/nand.mk b/target/linux/ar71xx/image/nand.mk
new file mode 100644
index 0000000000..ec97271c75
--- /dev/null
+++ b/target/linux/ar71xx/image/nand.mk
@@ -0,0 +1,19 @@
+define Build/MerakiNAND
+ -$(STAGING_DIR_HOST)/bin/mkmerakifw \
+ -B $(BOARDNAME) -s \
+ -i $@ \
+ -o $@.new
+ @mv $@.new $@
+endef
+
+define Device/mr18
+ BOARDNAME = MR18
+ BLOCKSIZE := 64k
+ CONSOLE = ttyS0,115200
+ MTDPARTS = ar934x-nfc:512k(nandloader)ro,8M(kernel),8M(recovery),113664k(ubi),128k@130944k(odm-caldata)ro
+ IMAGES := sysupgrade.tar
+ KERNEL := kernel-bin | patch-cmdline | MerakiNAND
+ KERNEL_INITRAMFS := kernel-bin | patch-cmdline | MerakiNAND
+ IMAGE/sysupgrade.tar := sysupgrade-nand
+endef
+TARGET_DEVICES += mr18