mirror of
https://github.com/hanwckf/immortalwrt-mt798x.git
synced 2025-01-07 01:53:34 +08:00
build/json: add filesystem information
Some images are created using different filesystems, most popular squashfs and ext4. To allow downstream projects to distinguesh between those, add the `filesystem` information to created json files. Signed-off-by: Paul Spooren <mail@aparcar.org>
This commit is contained in:
parent
cdc8d4b46f
commit
bc0ffff36a
@ -568,6 +568,7 @@ define Device/Build/image
|
|||||||
SOURCE_DATE_EPOCH=$(SOURCE_DATE_EPOCH) \
|
SOURCE_DATE_EPOCH=$(SOURCE_DATE_EPOCH) \
|
||||||
IMAGE_NAME="$(IMAGE_NAME)" \
|
IMAGE_NAME="$(IMAGE_NAME)" \
|
||||||
IMAGE_TYPE=$(word 1,$(subst ., ,$(2))) \
|
IMAGE_TYPE=$(word 1,$(subst ., ,$(2))) \
|
||||||
|
IMAGE_FILESYSTEM="$(1)" \
|
||||||
IMAGE_PREFIX="$(IMAGE_PREFIX)" \
|
IMAGE_PREFIX="$(IMAGE_PREFIX)" \
|
||||||
DEVICE_VENDOR="$(DEVICE_VENDOR)" \
|
DEVICE_VENDOR="$(DEVICE_VENDOR)" \
|
||||||
DEVICE_MODEL="$(DEVICE_MODEL)" \
|
DEVICE_MODEL="$(DEVICE_MODEL)" \
|
||||||
|
@ -51,6 +51,7 @@ image_info = {
|
|||||||
"images": [
|
"images": [
|
||||||
{
|
{
|
||||||
"type": getenv("IMAGE_TYPE"),
|
"type": getenv("IMAGE_TYPE"),
|
||||||
|
"filesystem": getenv("IMAGE_FILESYSTEM"),
|
||||||
"name": getenv("IMAGE_NAME"),
|
"name": getenv("IMAGE_NAME"),
|
||||||
"sha256": image_hash,
|
"sha256": image_hash,
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user