Make sure disabling ST's flashlayout & partitions work as expected
The current ST's .bbclass files do not really checks if ENABLE_PARTITIONS_IMAGE and ENABLE_FLASHLAYOUT_CONFIG are unset. This silently breaks third-party distributions that use their own partitions layout and root directory structures. Signed-off-by: Bumsik Kim <k.bumsik@gmail.com>
This commit is contained in:
parent
8263d32304
commit
a081a1e3d3
|
|
@ -120,7 +120,7 @@ FLASHLAYOUT_CONFIGURE_FILES ??= ""
|
||||||
# -----------------------------------------------------------------------------
|
# -----------------------------------------------------------------------------
|
||||||
python __anonymous () {
|
python __anonymous () {
|
||||||
flashlayout_config = d.getVar('ENABLE_FLASHLAYOUT_CONFIG')
|
flashlayout_config = d.getVar('ENABLE_FLASHLAYOUT_CONFIG')
|
||||||
if flashlayout_config:
|
if flashlayout_config == "1":
|
||||||
# Gather all current tasks
|
# Gather all current tasks
|
||||||
tasks = filter(lambda k: d.getVarFlag(k, "task", True), d.keys())
|
tasks = filter(lambda k: d.getVarFlag(k, "task", True), d.keys())
|
||||||
for task in tasks:
|
for task in tasks:
|
||||||
|
|
|
||||||
|
|
@ -38,6 +38,10 @@ python __anonymous () {
|
||||||
}
|
}
|
||||||
|
|
||||||
image_rootfs_image_clean_task () {
|
image_rootfs_image_clean_task () {
|
||||||
|
if [ ${ENABLE_PARTITIONS_IMAGE} -ne "1" ]; then
|
||||||
|
return
|
||||||
|
fi
|
||||||
|
|
||||||
for name in ${PARTITIONS_IMAGE};
|
for name in ${PARTITIONS_IMAGE};
|
||||||
do
|
do
|
||||||
if `echo ${IMAGE_NAME} | grep -q $name` ;
|
if `echo ${IMAGE_NAME} | grep -q $name` ;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue