[openwrt/openwrt] build/json: add filesystem information
LEDE Commits
lede-commits at lists.infradead.org
Sat Dec 26 14:41:51 EST 2020
aparcar pushed a commit to openwrt/openwrt.git, branch openwrt-19.07:
https://git.openwrt.org/42e478eb0dbfce71ba21d2a6ed7297ec6db8cc19
commit 42e478eb0dbfce71ba21d2a6ed7297ec6db8cc19
Author: Paul Spooren <mail at aparcar.org>
AuthorDate: Sun Dec 13 14:36:17 2020 -1000
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 at aparcar.org>
(cherry picked from commit bc0ffff36a0bd8043e958913f574cb8d2a79e93d)
---
include/image.mk | 1 +
scripts/json_add_image_info.py | 1 +
2 files changed, 2 insertions(+)
diff --git a/include/image.mk b/include/image.mk
index a13f37f886..ee9885c8f7 100644
--- a/include/image.mk
+++ b/include/image.mk
@@ -534,6 +534,7 @@ define Device/Build/image
BIN_DIR="$(BIN_DIR)" \
IMAGE_NAME="$(IMAGE_NAME)" \
IMAGE_TYPE=$(word 1,$(subst ., ,$(2))) \
+ IMAGE_FILESYSTEM="$(1)" \
IMAGE_PREFIX="$(IMAGE_PREFIX)" \
DEVICE_TITLE="$(DEVICE_TITLE)" \
DEVICE_PACKAGES="$(DEVICE_PACKAGES)" \
diff --git a/scripts/json_add_image_info.py b/scripts/json_add_image_info.py
index d1599b514a..9a640ad468 100755
--- a/scripts/json_add_image_info.py
+++ b/scripts/json_add_image_info.py
@@ -37,6 +37,7 @@ image_info = {
"images": [
{
"type": getenv("IMAGE_TYPE"),
+ "filesystem": getenv("IMAGE_FILESYSTEM"),
"name": getenv("IMAGE_NAME"),
"sha256": image_hash,
}
More information about the lede-commits
mailing list