Control: tags 980236 -patch On 2021-01-16, Nicolas Boulenguez wrote: > debian/rules sets CROSS_COMPILE in the environment and the Make > command line. > > Makefile overrides the environment with the value from the command > line, so the export by debian/rules is a confusing no-op.
With this applied, an attempted cross compile shows the exported variable is still needed: ld.bfd: arch/arm/lib/crt0_64.o: Relocations in generic ELF (EM: 183) ld.bfd: arch/arm/lib/crt0_64.o: Relocations in generic ELF (EM: 183) ld.bfd: arch/arm/lib/crt0_64.o: Relocations in generic ELF (EM: 183) ld.bfd: arch/arm/lib/crt0_64.o: Relocations in generic ELF (EM: 183) ld.bfd: arch/arm/lib/crt0_64.o: error adding symbols: file in wrong format make[4]: *** [/<<PKGBUILDDIR>>/scripts/Makefile.build:342: arch/arm/lib/built-in.o] Error 1 make[4]: *** Waiting for unfinished jobs.... make[3]: *** [/<<PKGBUILDDIR>>/Makefile:1784: arch/arm/lib] Error 2 make[3]: Leaving directory '/<<PKGBUILDDIR>>/debian/build/pinebook-pro-rk3399' make[2]: *** [Makefile:167: sub-make] Error 2 make[2]: Leaving directory '/<<PKGBUILDDIR>>' dh_auto_build: error: make -j4 "INSTALL=install --strip-program=true" PKG_CONFIG=aarch64-linux-gnu-pkg-config CXX=aarch64-linux-gnu-g\+\+ CC=aarch64-linux-gnu-gcc V=1 O=debian/build/pinebook-pro-rk3399 returned exit code 2 Other tools in u-boot's Makefiles probably need it as well... live well, vagrant
signature.asc
Description: PGP signature

