From 501a0dbd21a419183635b887f2c33aacfe49bfcc Mon Sep 17 00:00:00 2001 From: Mike Engel Date: Tue, 15 Nov 2022 16:49:10 +0100 Subject: [PATCH] swupdate: add CONFIG_MTD only when platform supports NAND device https://onedigi.atlassian.net/browse/DEL-7280 Signed-off-by: Mike Engel --- meta-digi-dey/recipes-support/swupdate/swupdate/defconfig | 1 - meta-digi-dey/recipes-support/swupdate/swupdate/mtd.cfg | 2 ++ .../recipes-support/swupdate/swupdate_2022.05.bbappend | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) create mode 100644 meta-digi-dey/recipes-support/swupdate/swupdate/mtd.cfg diff --git a/meta-digi-dey/recipes-support/swupdate/swupdate/defconfig b/meta-digi-dey/recipes-support/swupdate/swupdate/defconfig index f6c60bffd..5696220c0 100644 --- a/meta-digi-dey/recipes-support/swupdate/swupdate/defconfig +++ b/meta-digi-dey/recipes-support/swupdate/swupdate/defconfig @@ -24,7 +24,6 @@ CONFIG_SW_VERSIONS_FILE="/etc/sw-versions" # CONFIG_SOCKET_CTRL_PATH="" CONFIG_SOCKET_PROGRESS_PATH="" -CONFIG_MTD=y # CONFIG_LUA is not set # CONFIG_FEATURE_SYSLOG is not set diff --git a/meta-digi-dey/recipes-support/swupdate/swupdate/mtd.cfg b/meta-digi-dey/recipes-support/swupdate/swupdate/mtd.cfg new file mode 100644 index 000000000..3e58d300c --- /dev/null +++ b/meta-digi-dey/recipes-support/swupdate/swupdate/mtd.cfg @@ -0,0 +1,2 @@ +# Add MTD support +CONFIG_MTD=y diff --git a/meta-digi-dey/recipes-support/swupdate/swupdate_2022.05.bbappend b/meta-digi-dey/recipes-support/swupdate/swupdate_2022.05.bbappend index 0a7490d88..0635fb6f9 100644 --- a/meta-digi-dey/recipes-support/swupdate/swupdate_2022.05.bbappend +++ b/meta-digi-dey/recipes-support/swupdate/swupdate_2022.05.bbappend @@ -9,6 +9,7 @@ SRC_URI += " \ file://0001-Makefile-change-Makefile-to-build-swupdate-library-s.patch \ file://0002-config-add-on-the-fly-build-configuration-variable.patch \ ${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'file://systemd.cfg', '', d)} \ + ${@bb.utils.contains('STORAGE_MEDIA', 'mtd', 'file://mtd.cfg', '', d)} \ " do_configure:append() {