mvebu: add a subprofile for boards based on a small NOR

Some boards only come with a small NOR on it, where UBI isn't a good solution
because of its overhead.

Add a new subprofile for such boards, that rely on the mtd split framework
instead.

Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
Signed-off-by: Imre Kaloz <kaloz@openwrt.org>

SVN-Revision: 44263
This commit is contained in:
Imre Kaloz 2015-02-05 11:25:21 +00:00
parent e46593a54c
commit f14c4e5cff

View file

@ -76,6 +76,31 @@ define UBINORProfile
PROFILES_LIST += $(1) PROFILES_LIST += $(1)
endef endef
# $(1): Profile Name
# $(2): DTB Name
# $(3): Erase Block Size
define NORProfile
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
( \
dd if=$(KDIR)/uImage-$(2) bs=$(3) conv=sync; \
dd if=$(KDIR)/root.squashfs bs=$(3) conv=sync; \
) > $$(BIN_DIR)/$$(IMG_PREFIX)-$(2)-squashfs-firmware.bin
endef
PROFILES_LIST += $(1)
endef
# $(1): Profile Name # $(1): Profile Name
# $(2): Sub Profiles list # $(2): Sub Profiles list
define MultiProfile define MultiProfile