We want to make sure `make scripts prepare` succeed inside SDK. However, the legacy .o files under scripts/kconfig will introduce build error on some hosts, thus removing them.
Signed-off-by: Chen Qi <[email protected]> --- meta/files/toolchain-shar-extract.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/meta/files/toolchain-shar-extract.sh b/meta/files/toolchain-shar-extract.sh index 04527f891f..61911e72c9 100644 --- a/meta/files/toolchain-shar-extract.sh +++ b/meta/files/toolchain-shar-extract.sh @@ -286,6 +286,9 @@ if [ -e "$post_relocate" ]; then $SUDO_EXEC rm -f $post_relocate fi +# Remove legacy .o files to avoid kernel build failure +rm -f $target_sdk_dir/sysroots/*/usr/src/kernel/scripts/kconfig/*.o + echo "SDK has been successfully set up and is ready to be used." echo "Each time you wish to use the SDK in a new shell session, you need to source the environment setup script e.g." for env_setup_script in `ls $target_sdk_dir/environment-setup-*`; do -- 2.17.1
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#137370): https://lists.openembedded.org/g/openembedded-core/message/137370 Mute This Topic: https://lists.openembedded.org/mt/73190691/21656 Group Owner: [email protected] Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [[email protected]] -=-=-=-=-=-=-=-=-=-=-=-
