uboot-tools: pass empty CFLAGS on invocation of libfdt/setup.py
authorMax Filippov <jcmvbkbc@gmail.com>
Fri, 17 Mar 2017 16:42:42 +0000 (09:42 -0700)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Sat, 18 Mar 2017 13:01:19 +0000 (14:01 +0100)
commitbfea22f3321b902c597416061dab079096bc77ec
treebf8198683b269403dae880061f9e283ff1e265f7
parent848370091c8ab54b22b7b05c472ef5c5c02e3185
uboot-tools: pass empty CFLAGS on invocation of libfdt/setup.py

When building u-boot tools in cross-build environment CFLAGS environment
variable set up for target is taken into an account when building code
for host. Make it empty on invocation of python.

This fixes the following build errors when cross-compiling for xtensa:

  cc1: error: unrecognized command line option "-mlongcalls"
  cc1: error: unrecognized command line option "-mauto-litpools"

Fixes:
  http://autobuild.buildroot.net/results/439d6dacfaa7f9244bd15ca04990c12a25ff4777
  http://autobuild.buildroot.net/results/e2fe36c20e75d01a01a6659ef11e888965a843b9
  http://autobuild.buildroot.net/results/6f37ff347822a76571a9fe9cf3c491fe7e4164fa

Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
package/uboot-tools/0004-Pass-empty-CFLAGS-on-invocation-of-libfdt-setup.py.patch [new file with mode: 0644]