Author: kaloz
Date: 2015-02-05 12:24:10 +0100 (Thu, 05 Feb 2015)
New Revision: 44262

Modified:
   trunk/target/linux/mvebu/image/Makefile
Log:
mvebu: add large NOR sub-profile implementation

While we supported only the NAND so far, some boards use a large enough NOR,
where UBI is the only reasonable option. Create a new sub-profile template with
a different set of UBI options.
 
Signed-off-by: Maxime Ripard <[email protected]>
Signed-off-by: Imre Kaloz <[email protected]>



Modified: trunk/target/linux/mvebu/image/Makefile
===================================================================
--- trunk/target/linux/mvebu/image/Makefile     2015-02-05 11:22:43 UTC (rev 
44261)
+++ trunk/target/linux/mvebu/image/Makefile     2015-02-05 11:24:10 UTC (rev 
44262)
@@ -55,6 +55,28 @@
 endef
 
 # $(1): Profile Name
+# $(2): DTB Name
+# $(3): Erase Block Size
+define UBINORProfile
+  define Image/BuildKernel/Profile/$(1)
+       $(call Image/Build/DTB,$(2))
+    ifneq ($(CONFIG_TARGET_ROOTFS_INITRAMFS),)
+       $(call Image/Build/Profile,$(1)/Initramfs)
+    endif
+  endef
+
+  define Image/Build/Profile/$(1)/Initramfs
+       $(call Image/Build/DTB,$(2),-initramfs)
+  endef
+
+  define Image/Build/Profile/$(1)/squashfs
+       $(call Image/Build/UbinizeImage,$(2),,squashfs, -p $(3) -m 1)
+  endef
+
+  PROFILES_LIST += $(1)
+endef
+
+# $(1): Profile Name
 # $(2): Sub Profiles list
 define MultiProfile
   define Image/BuildKernel/Profile/$(1)
_______________________________________________
openwrt-commits mailing list
[email protected]
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-commits

Reply via email to