X-Git-Url: http://git.openwrt.org/?a=blobdiff_plain;f=include%2Fimage-commands.mk;h=8251a814000d2507676ccf51075860e86f64da18;hb=e40050d1049ddf8ca0eb49666eafcb69b4a1d374;hp=47d7193434d16c39cb2fb0c87bef93dd29169a1d;hpb=bf4630e5adb40aa393f6bd4c560baf42de0f1957;p=openwrt%2Fopenwrt.git diff --git a/include/image-commands.mk b/include/image-commands.mk index 47d7193434..8251a81400 100644 --- a/include/image-commands.mk +++ b/include/image-commands.mk @@ -297,14 +297,14 @@ endef define Build/qsdk-ipq-factory-nand $(TOPDIR)/scripts/mkits-qsdk-ipq-image.sh \ $@.its ubi $@ - mkimage -f $@.its $@.new + PATH=$(LINUX_DIR)/scripts/dtc:$(PATH) mkimage -f $@.its $@.new @mv $@.new $@ endef define Build/qsdk-ipq-factory-nor $(TOPDIR)/scripts/mkits-qsdk-ipq-image.sh \ $@.its hlos $(IMAGE_KERNEL) rootfs $(IMAGE_ROOTFS) - mkimage -f $@.its $@.new + PATH=$(LINUX_DIR)/scripts/dtc:$(PATH) mkimage -f $@.its $@.new @mv $@.new $@ endef @@ -355,12 +355,14 @@ json_quote=$(subst ','\'',$(subst ",\",$(1))) metadata_devices=$(if $(1),$(subst "$(space)","$(comma)",$(strip $(foreach v,$(1),"$(call json_quote,$(v))")))) metadata_json = \ '{ $(if $(IMAGE_METADATA),$(IMAGE_METADATA)$(comma)) \ + "metadata_version": "1.0", \ "supported_devices":[$(call metadata_devices,$(1))], \ "version": { \ "dist": "$(call json_quote,$(VERSION_DIST))", \ "version": "$(call json_quote,$(VERSION_NUMBER))", \ "revision": "$(call json_quote,$(REVISION))", \ - "board": "$(call json_quote,$(BOARD))" \ + "target": "$(call json_quote,$(TARGETID))", \ + "board": "$(call json_quote,$(if $(BOARD_NAME),$(BOARD_NAME),$(DEVICE_NAME)))" \ } \ }'