ar71xx: pass mtdlayout to Planex boards via command line
[openwrt.git] / target / linux / ar71xx / image / Makefile
index e94374d..7013730 100644 (file)
@@ -29,13 +29,11 @@ KDIR_TMP:=$(KDIR)/tmp
 VMLINUX:=$(BIN_DIR)/$(IMG_PREFIX)-vmlinux
 UIMAGE:=$(BIN_DIR)/$(IMG_PREFIX)-uImage
 fs_squash:=squashfs-only
-fs_all:=all
 fs_64k:=64k
 fs_64kraw:=64kraw
 fs_128k:=128k
 ifeq ($(CONFIG_TARGET_ROOTFS_INITRAMFS),y)
        fs_squash:=initramfs
-       fs_all:=initramfs
        fs_64k:=initramfs
        fs_64kraw:=initramfs
        fs_128k:=initramfs
@@ -293,8 +291,9 @@ define Image/Build/UBNT
   $(call sysupname,$(1),$(2))
 endef
 
+planex_mtdlayout=mtdparts=spi0.0:256k(u-boot)ro,64k(u-boot-env)ro,1408k(kernel),6336k(rootfs),128k(art)ro,7744k@0x50000(firmware)
 define Image/Build/Planex
-       $(call MkuImageGzip,$(2),$(3))
+       $(call MkuImageGzip,$(2),$(3) $(planex_mtdlayout))
        $(call Sysupgrade/KR,$(1),$(2),1441792,6356992)
        if [ -e "$(call sysupname,$(1),$(2))" ]; then \
                $(STAGING_DIR_HOST)/bin/mkplanexfw \
This page took 0.027458 seconds and 4 git commands to generate.