|
|
@@ -122,6 +122,18 @@ define Build/append-ubi
|
|
|
rm [email protected]
|
|
|
endef
|
|
|
|
|
|
+define Build/ubinize-kernel
|
|
|
+ cp $@ [email protected]
|
|
|
+ sh $(TOPDIR)/scripts/ubinize-image.sh \
|
|
|
+ --kernel [email protected] \
|
|
|
+ $@ \
|
|
|
+ -p $(BLOCKSIZE:%k=%KiB) -m $(PAGESIZE) \
|
|
|
+ $(if $(SUBPAGESIZE),-s $(SUBPAGESIZE)) \
|
|
|
+ $(if $(VID_HDR_OFFSET),-O $(VID_HDR_OFFSET)) \
|
|
|
+ $(UBINIZE_OPTS)
|
|
|
+ rm [email protected]
|
|
|
+endef
|
|
|
+
|
|
|
define Build/append-uboot
|
|
|
dd if=$(UBOOT_PATH) >> $@
|
|
|
endef
|