mirror of
https://git.openwrt.org/openwrt/openwrt.git/
synced 2025-10-06 03:02:55 +02:00
build: include size-limits to device-metadata
Include the image and kernel size limitations defined for each device to the device metadata JSON. These informations are only added if defined. Signed-off-by: David Bauer <mail@david-bauer.net>
This commit is contained in:
@@ -647,6 +647,8 @@ define Device/Build/initramfs
|
||||
VERSION_NUMBER="$(VERSION_NUMBER)" \
|
||||
VERSION_CODE="$(VERSION_CODE)" \
|
||||
SUPPORTED_DEVICES="$$(SUPPORTED_DEVICES)" \
|
||||
KERNEL_SIZE="$$(KERNEL_SIZE)" \
|
||||
IMAGE_SIZE="$$(IMAGE_SIZE)" \
|
||||
$(TOPDIR)/scripts/json_add_image_info.py $$@
|
||||
endef
|
||||
endif
|
||||
@@ -781,6 +783,8 @@ define Device/Build/image
|
||||
VERSION_NUMBER="$(VERSION_NUMBER)" \
|
||||
VERSION_CODE="$(VERSION_CODE)" \
|
||||
SUPPORTED_DEVICES="$(SUPPORTED_DEVICES)" \
|
||||
KERNEL_SIZE="$(KERNEL_SIZE)" \
|
||||
IMAGE_SIZE="$(IMAGE_SIZE)" \
|
||||
$(TOPDIR)/scripts/json_add_image_info.py $$@
|
||||
|
||||
endef
|
||||
@@ -835,6 +839,8 @@ define Device/Build/artifact
|
||||
VERSION_NUMBER="$(VERSION_NUMBER)" \
|
||||
VERSION_CODE="$(VERSION_CODE)" \
|
||||
SUPPORTED_DEVICES="$(SUPPORTED_DEVICES)" \
|
||||
KERNEL_SIZE="$(KERNEL_SIZE)" \
|
||||
IMAGE_SIZE="$(IMAGE_SIZE)" \
|
||||
$(TOPDIR)/scripts/json_add_image_info.py $$@
|
||||
|
||||
endef
|
||||
|
Reference in New Issue
Block a user