swupdate: pass full TARGET_CONFIGURE_OPTS
PATCH 1/1 swupdate: pass full TARGET_CONFIGURE_OPTS
Although we set CONFIG_CROSS_COMPILE to TARGET_CROSS in swupdate's .config file, swupdate's build system just appends 'cc' to it, not 'gcc'. Some external toolchains don't provide a cc -> gcc symlink, leading to errors like:
/bin/sh: .../host/bin/arm-none-linux-gnueabi-cc: No such file or directory
We can just pass TARGET_CONFIGURE_OPTS which explicitly sets CC=, like we do for all other packages.
Although this makes setting CONFIG_CROSS_COMPILE redundant, it's nice to keep it as well for consistency.
Fixes:
http://autobuild.buildroot.net/results/e302d0edb59ff7617b5f2d21f06eb65ae04981fe
http://autobuild.buildroot.net/results/dbb69acadc20b4bb559311348eca276c1e6343f7
--- package/swupdate/swupdate.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
package/swupdate/swupdate.mk +1 -1
@@ -118,7 +118,7 @@ define SWUPDATE_KCONFIG_FIXUP_CMDS endef define SWUPDATE_BUILD_CMDS - $(TARGET_MAKE_ENV) $(SWUPDATE_MAKE_ENV) $(MAKE) -C $(@D) + $(TARGET_CONFIGURE_OPTS) $(SWUPDATE_MAKE_ENV) $(MAKE) -C $(@D) endef define SWUPDATE_INSTALL_TARGET_CMDS
Signature · 1 line
2.19.2
PATCH 1/1 swupdate: pass full TARGET_CONFIGURE_OPTS
Quoted 15 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Arnout" == Arnout Vandecappelle (Essensium/Mind) <[email protected]> writes:
Although we set
CONFIG_CROSS_COMPILEtoTARGET_CROSSin swupdate's .config file, swupdate's build system just appends 'cc' to it, not 'gcc'. Some external toolchains don't provide a cc -> gcc symlink, leading to errors like:
/bin/sh: .../host/bin/arm-none-linux-gnueabi-cc: No such file or directoryWe can just pass
TARGET_CONFIGURE_OPTSwhich explicitly sets CC=, like we do for all other packages.Although this makes setting
CONFIG_CROSS_COMPILEredundant, it's nice to keep it as well for consistency.
Quoted 6 lines
Fixes:
http://autobuild.buildroot.net/results/e302d0edb59ff7617b5f2d21f06eb65ae04981fe
http://autobuild.buildroot.net/results/dbb69acadc20b4bb559311348eca276c1e6343f7Cc Peter Korsgaard <[email protected]>
Committed, thanks.
Do we still want https://patchwork.ozlabs.org/patch/1014334/ to handle similar issues in other packages?
Signature · 1 line
Bye, Peter Korsgaard
PATCH 1/1 swupdate: pass full TARGET_CONFIGURE_OPTS
In reply to Arnout Vandecappelle (Essensium/Mind)Quoted 11 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Arnout" == Arnout Vandecappelle (Essensium/Mind) <[email protected]> writes:
Although we set
CONFIG_CROSS_COMPILEtoTARGET_CROSSin swupdate's .config file, swupdate's build system just appends 'cc' to it, not 'gcc'. Some external toolchains don't provide a cc -> gcc symlink, leading to errors like:
/bin/sh: .../host/bin/arm-none-linux-gnueabi-cc: No such file or directoryWe can just pass
TARGET_CONFIGURE_OPTSwhich explicitly sets CC=, like we do for all other packages.
Hmm, wait - This also passes LD="$(TARGET_LD)", whereas swupdate used CC to link. Is that really working?
Signature · 1 line
Bye, Peter Korsgaard
PATCH 1/1 swupdate: pass full TARGET_CONFIGURE_OPTS
Quoted 8 lines
Quoted 7 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
"Peter" == Peter Korsgaard <[email protected]> writes:
"Arnout" == Arnout Vandecappelle (Essensium/Mind) <[email protected]> writes:
Although we set
CONFIG_CROSS_COMPILEtoTARGET_CROSSin swupdate's .config file, swupdate's build system just appends 'cc' to it, not 'gcc'. Some external toolchains don't provide a cc -> gcc symlink, leading to errors like:
Quoted 7 lines
Quoted 4 lines
/bin/sh: .../host/bin/arm-none-linux-gnueabi-cc: No such file or directoryWe can just pass
TARGET_CONFIGURE_OPTSwhich explicitly sets CC=, like we do for all other packages.Hmm, wait - This also passes LD="$(TARGET_LD)", whereas swupdate used CC to link. Is that really working?
No it doesn't:
LD core/built-in.o/home/peko/source/buildroot/output-sw/host/bin/mips-img-linux-gnu-ld: core/swupdate.o: compiled for a little endian system and target is big endian
scripts/Makefile.build:224: recipe for target 'core/built-in.o' failed make[3]: *** [core/built-in.o] Error 1
Makefile:480: recipe for target 'core' failed
make[2]: *** [core] Error 2
With this defconfig:
BR2_mipsel=y
BR2_mips_32r6=y
BR2_TOOLCHAIN_EXTERNAL=y
BR2_PACKAGE_SWUPDATE=y
I will change it to explicitly pass CC="$(TARGET_CC)" LD="$(TARGET_CC)" instead.
Signature · 1 line
Bye, Peter Korsgaard
PATCH 1/1 swupdate: pass full TARGET_CONFIGURE_OPTS
Quoted 8 lines · Peter Korsgaard
Quoted 7 lines
Quoted 7 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
"Peter" == Peter Korsgaard <[email protected]> writes:
"Arnout" == Arnout Vandecappelle (Essensium/Mind) <[email protected]> writes:
Although we set
CONFIG_CROSS_COMPILEtoTARGET_CROSSin swupdate's .config file, swupdate's build system just appends 'cc' to it, not 'gcc'. Some external toolchains don't provide a cc -> gcc symlink, leading to errors like:
Quoted 7 lines
Quoted 7 lines
Quoted 4 lines
/bin/sh: .../host/bin/arm-none-linux-gnueabi-cc: No such file or directoryWe can just pass
TARGET_CONFIGURE_OPTSwhich explicitly sets CC=, like we do for all other packages.Hmm, wait - This also passes LD="$(TARGET_LD)", whereas swupdate used CC to link. Is that really working?
Crap. I did think of that but not hard enough. Mental note: next time test
mipsel...
Regards,
Arnout
Quoted 20 lines
No it doesn't:
LD
core/built-in.o/home/peko/source/buildroot/output-sw/host/bin/mips-img-linux-gnu-ld:core/swupdate.o: compiled for a little endian system and target is big endian
scripts/Makefile.build:224: recipe for target 'core/built-in.o' failed make[3]: *** [core/built-in.o] Error 1
Makefile:480: recipe for target 'core' failed
make[2]: *** [core] Error 2With this defconfig:
BR2_mipsel=y
BR2_mips_32r6=y
BR2_TOOLCHAIN_EXTERNAL=y
BR2_PACKAGE_SWUPDATE=yI will change it to explicitly pass CC="$(TARGET_CC)" LD="$(TARGET_CC)" instead.