All of lore.kernel.org
 help / color / mirror / Atom feed
* [OE-core][PATCH 1/2] toolchain-shar-extract.sh: remove legacy .o files
@ 2020-04-22  7:28 Chen Qi
  2020-04-22  7:28 ` [OE-core][PATCH 2/2] linux-yocto: add more support for SDK Chen Qi
  2020-04-22 23:19 ` [OE-core][PATCH 1/2] toolchain-shar-extract.sh: remove legacy .o files Richard Purdie
  0 siblings, 2 replies; 5+ messages in thread
From: Chen Qi @ 2020-04-22  7:28 UTC (permalink / raw)
  To: openembedded-core

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 <Qi.Chen@windriver.com>
---
 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


^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2020-04-23  1:53 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-04-22  7:28 [OE-core][PATCH 1/2] toolchain-shar-extract.sh: remove legacy .o files Chen Qi
2020-04-22  7:28 ` [OE-core][PATCH 2/2] linux-yocto: add more support for SDK Chen Qi
2020-04-22 12:46   ` Bruce Ashfield
2020-04-22 23:19 ` [OE-core][PATCH 1/2] toolchain-shar-extract.sh: remove legacy .o files Richard Purdie
2020-04-23  1:53   ` Chen Qi

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.