image: add a build step for building and appending an ubinized rootfs
Signed-off-by: Jonas Gorski <jogo@openwrt.org> SVN-Revision: 46783
This commit is contained in:
parent
556d483a6f
commit
db8ae81f89
1 changed files with 10 additions and 0 deletions
|
@ -345,6 +345,16 @@ define Build/append-rootfs
|
||||||
dd if=$(word 2,$^) $(if $(1),bs=$(1) conv=sync) >> $@
|
dd if=$(word 2,$^) $(if $(1),bs=$(1) conv=sync) >> $@
|
||||||
endef
|
endef
|
||||||
|
|
||||||
|
define Build/append-ubi
|
||||||
|
sh $(TOPDIR)/scripts/ubinize-image.sh \
|
||||||
|
$(if $(KERNEL_IN_UBI),--kernel $(word 1,$^)) \
|
||||||
|
$(word 2,$^) \
|
||||||
|
$@.tmp \
|
||||||
|
-p $(BLOCKSIZE) -m $(PAGESIZE) -E 5
|
||||||
|
cat $@.tmp >> $@
|
||||||
|
rm $@.tmp
|
||||||
|
endef
|
||||||
|
|
||||||
define Build/pad-to
|
define Build/pad-to
|
||||||
dd if=$@ of=$@.new bs=$(1) conv=sync
|
dd if=$@ of=$@.new bs=$(1) conv=sync
|
||||||
mv $@.new $@
|
mv $@.new $@
|
||||||
|
|
Loading…
Reference in a new issue