ar71xx/image: add build step mkubntimage2 mkubntkernelimage for unifi boards
Signed-off-by: Alexander Couzens <lynxis@fe80.eu> SVN-Revision: 45982
This commit is contained in:
parent
89aadeeae4
commit
b5798e07a5
1 changed files with 22 additions and 0 deletions
|
@ -131,8 +131,30 @@ define Build/mkubntimage-split
|
|||
rm $@.old1 $@.old2
|
||||
endef
|
||||
|
||||
define Build/mkubntimage2
|
||||
$(STAGING_DIR_HOST)/bin/mkfwimage2 -f 0x9f000000 \
|
||||
-v $(UBNT_TYPE).$(UBNT_CHIP).v6.0.0-OpenWrt-$(REVISION) \
|
||||
-p jffs2:0x50000:0xf60000:0:0:$@ \
|
||||
-o $@.new
|
||||
@mv $@.new $@
|
||||
endef
|
||||
|
||||
DEVICE_VARS += UBNT_BOARD UBNT_CHIP UBNT_TYPE
|
||||
|
||||
define Build/mkubntkernelimage
|
||||
rm -rf $(KDIR_TMP)/ubnt-$(KERNEL_IMAGE)/image && \
|
||||
mkdir -p $(KDIR_TMP)/ubnt-$(KERNEL_IMAGE)/image && \
|
||||
cp $@ $(KDIR_TMP)/ubnt-$(KERNEL_IMAGE)/image/kernel0 && \
|
||||
$(STAGING_DIR_HOST)/bin/mkfs.jffs2 \
|
||||
--pad --big-endian --squash-uids -v -e 64KiB \
|
||||
-o $@.new \
|
||||
-d $(KDIR_TMP)/ubnt-$(KERNEL_IMAGE)/image \
|
||||
2>&1 && \
|
||||
$(STAGING_DIR_HOST)/bin/padjffs2 $@.new -J 64
|
||||
-rm -rf $(KDIR_TMP)/ubnt-$(KERNEL_IMAGE)/image
|
||||
@mv $@.new $@
|
||||
endef
|
||||
|
||||
define Device/Default
|
||||
BOARDNAME :=
|
||||
DEVICE_PROFILE = $$(BOARDNAME)
|
||||
|
|
Loading…
Reference in a new issue