X-Git-Url: http://git.openwrt.org/?a=blobdiff_plain;f=target%2Flinux%2Fimx6%2Fimage%2FMakefile;h=a7d68fbe977e3e3ab94f2786ccf163b6579ed7a0;hb=468a9b7a7744478e6225816aa6153c9db0155810;hp=9122d9673ae16db166632df058131d99ea3a0d03;hpb=8e2764ce9bb6716acb955a0c27d8db291d68650c;p=openwrt%2Fopenwrt.git diff --git a/target/linux/imx6/image/Makefile b/target/linux/imx6/image/Makefile index 9122d9673a..a7d68fbe97 100644 --- a/target/linux/imx6/image/Makefile +++ b/target/linux/imx6/image/Makefile @@ -51,20 +51,10 @@ define Build/ubi-boot-overlay $(BIN_DIR)/$(IMG_PREFIX)-$(DEVICE_NAME)-bootfs_$(word 1, $(1)).ubifs # ubi - rm -rf p $(KDIR)/$(DEVICE_NAME)_$(word 1, $(1)) - mkdir -p $(KDIR)/$(DEVICE_NAME)_$(word 1, $(1)) - $(CP) $(word 2, $^) \ - $(KDIR)/$(DEVICE_NAME)_$(word 1, $(1))/ - $(CP) $(KDIR)/boot-$(DEVICE_NAME)-bootfs_$(word 1, $(1)).ubifs \ - $(KDIR)/$(DEVICE_NAME)_$(word 1, $(1))/boot.ubifs - $(CP) ./ubinize-$(DEVICE_NAME).cfg \ - $(KDIR)/$(DEVICE_NAME)_$(word 1, $(1))/ubinize.cfg - ( cd $(KDIR)/$(DEVICE_NAME)_$(word 1, $(1)); \ - $(STAGING_DIR_HOST)/bin/ubinize \ - -m $(word 2, $(1)) -p $(word 4, $(1)) -s $(word 2, $(1)) \ - -o $@ \ - ubinize.cfg \ - ) + sh $(TOPDIR)/scripts/ubinize-image.sh \ + --part boot=$(KDIR)/boot-$(DEVICE_NAME)-bootfs_$(word 1, $(1)).ubifs=15 \ + $(IMAGE_ROOTFS) $@ \ + -m $(word 2, $(1)) -p $(word 4, $(1)) -s $(word 2, $(1)) endef define Build/bootfs.tar.gz