From 2ea5422f29b04ec4b7998e9c9aa99c86d92f9c07 Mon Sep 17 00:00:00 2001 From: Priouzeau Christophe Date: Mon, 3 Feb 2020 15:08:22 +0100 Subject: [PATCH] IMAGE: manage exception for local partitions (bootfs, userfs, vendorfs) Signed-off-by: Priouzeau Christophe --- recipes-st/images/st-image-bootfs.bb | 4 ++++ recipes-st/images/st-image-userfs.bb | 5 +++++ recipes-st/images/st-image-vendorfs.bb | 5 +++++ 3 files changed, 14 insertions(+) diff --git a/recipes-st/images/st-image-bootfs.bb b/recipes-st/images/st-image-bootfs.bb index 6ad0669..014b9f2 100644 --- a/recipes-st/images/st-image-bootfs.bb +++ b/recipes-st/images/st-image-bootfs.bb @@ -53,6 +53,10 @@ IMAGE_PREPROCESS_COMMAND_remove = "prelink_image;" IMAGE_PREPROCESS_COMMAND_append = "reformat_rootfs;" +# remove specific systemd task +IMAGE_PREPROCESS_COMMAND_remove = "systemd-systemctl-native;" +IMAGE_PREPROCESS_COMMAND_remove = "systemd_preset_all;" + # Cleanup rootfs newly created reformat_rootfs() { if [ -d ${IMAGE_ROOTFS}${IMAGE_PARTITION_MOUNTPOINT} ]; then diff --git a/recipes-st/images/st-image-userfs.bb b/recipes-st/images/st-image-userfs.bb index aa3e414..025e3b9 100644 --- a/recipes-st/images/st-image-userfs.bb +++ b/recipes-st/images/st-image-userfs.bb @@ -35,6 +35,11 @@ PACKAGE_INSTALL += " \ linux-examples-stm32mp1-userfs \ " +# Add demo application described on specific packagegroup +PACKAGE_INSTALL += " \ + packagegroup-st-demo \ + " + # Reset LDCONFIG to avoid runing ldconfig on image. LDCONFIGDEPEND = "" diff --git a/recipes-st/images/st-image-vendorfs.bb b/recipes-st/images/st-image-vendorfs.bb index a66ae81..b6dca1b 100644 --- a/recipes-st/images/st-image-vendorfs.bb +++ b/recipes-st/images/st-image-vendorfs.bb @@ -51,6 +51,11 @@ IMAGE_PREPROCESS_COMMAND_remove = "prelink_image;" IMAGE_PREPROCESS_COMMAND_append = "reformat_rootfs;" +# remove specific systemd task +IMAGE_PREPROCESS_COMMAND_remove = "systemd-systemctl-native;" +IMAGE_PREPROCESS_COMMAND_remove = "systemd_preset_all;" + + # Cleanup rootfs newly created reformat_rootfs() { if [ -d ${IMAGE_ROOTFS}${IMAGE_PARTITION_MOUNTPOINT} ]; then