diff --git a/meta-ohos-core/recipes-core/images/openharmony-image-base.bb b/meta-ohos-core/recipes-core/images/openharmony-image-base.bb index fa7c03b2c539e0688f57585d4529fdc3146fe92f..97bfd51bfb692d5934b4d6aae0c52ab6b5aaa8e4 100644 --- a/meta-ohos-core/recipes-core/images/openharmony-image-base.bb +++ b/meta-ohos-core/recipes-core/images/openharmony-image-base.bb @@ -1,8 +1,3 @@ # Base this image on core-image-base -include recipes-core/images/core-image-base.bb - -IMAGE_INSTALL_append = " \ - packagegroup-net-essentials \ - packagegroup-net-tools \ - packagegroup-ble-essentials \ - " +require recipes-core/images/core-image-base.bb +require openharmony-image-common.inc diff --git a/meta-ohos-core/recipes-core/images/openharmony-image-common.inc b/meta-ohos-core/recipes-core/images/openharmony-image-common.inc new file mode 100644 index 0000000000000000000000000000000000000000..7626b16a2b9f20bc962658e2a70c218c91fa800d --- /dev/null +++ b/meta-ohos-core/recipes-core/images/openharmony-image-common.inc @@ -0,0 +1,7 @@ +# Common settings for all OpenHarmony images + +IMAGE_INSTALL_append = "\ + packagegroup-net-essentials \ + packagegroup-net-tools \ + packagegroup-ble-essentials \ + " diff --git a/meta-ohos-core/recipes-core/images/openharmony-image-extra.bb b/meta-ohos-core/recipes-core/images/openharmony-image-extra.bb index 974e1a4b42797a58455767536f06729edbd3438a..39cd3be4f05474a701e58433c7e31d7254f1fcb6 100644 --- a/meta-ohos-core/recipes-core/images/openharmony-image-extra.bb +++ b/meta-ohos-core/recipes-core/images/openharmony-image-extra.bb @@ -1,8 +1,3 @@ # Base this image on core-image-weston -include recipes-graphics/images/core-image-weston.bb - -IMAGE_INSTALL_append = " \ - packagegroup-net-essentials \ - packagegroup-net-tools \ - packagegroup-ble-essentials \ - " +require recipes-graphics/images/core-image-weston.bb +require openharmony-image-common.inc