mirror of
https://github.com/hak5/wifipineapple-openwrt.git
synced 2025-10-29 16:57:19 +00:00
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 <maxime.ripard@free-electrons.com> Signed-off-by: Imre Kaloz <kaloz@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@44262 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
552279824c
commit
fc9eed5539
@ -54,6 +54,28 @@ define NANDProfile
|
||||
PROFILES_LIST += $(1)
|
||||
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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user