From mboxrd@z Thu Jan 1 00:00:00 1970 From: Heiko Schocher Date: Mon, 23 Jan 2017 13:57:13 +0100 Subject: [U-Boot] [PATCH] Revert "build: Always build the libfdt python module" In-Reply-To: <20170123123750.791-1-sjg@chromium.org> References: <20170123123750.791-1-sjg@chromium.org> Message-ID: <5885FDA9.5000002@denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Hello Simon, Am 23.01.2017 um 13:37 schrieb Simon Glass: > This appears to cause problems with powerpc: > > +x86_64-linux-gnu-gcc: error: unrecognized command line option ?-melf32ppclinux? > +error: command 'x86_64-linux-gnu-gcc' failed with exit status 1 > +make[2]: *** [tools/_libfdt.so] Error 1 > +make[1]: *** [tools] Error 2 > +make: *** [sub-make] Error 2 > > It may need to be made ARM-specific. > > This reverts commit 1905c8fc711a527ff10550425498bc77e4db9ac3. > Signed-off-by: Simon Glass > --- > > tools/Makefile | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) Yup, I posted this issue exactly today ... Reviewed-by: Heiko Schocher Tested on the tqm5200 board, so: Tested-by: Heiko Schocher > diff --git a/tools/Makefile b/tools/Makefile > index a609d058595..5b81dde4b06 100644 > --- a/tools/Makefile > +++ b/tools/Makefile > @@ -111,7 +111,7 @@ fit_check_sign-objs := $(dumpimage-mkimage-objs) fit_check_sign.o > > # Build a libfdt Python module if swig is available > # Use 'sudo apt-get install swig libpython-dev' to enable this > -hostprogs-y += \ > +hostprogs-$(CONFIG_SPL_OF_PLATDATA) += \ > $(if $(shell which swig 2> /dev/null),_libfdt.so) > _libfdt.so-sharedobjs += $(LIBFDT_OBJS) > libfdt: > Why do we need this at all? Fedora for example has no "libpython-dev" ... So at least the "if" should check for "libpython-dev" too... # dnf install libpython-dev Last metadata expiration check: 1:50:58 ago on Mon Jan 23 07:49:26 2017. No package libpython-dev available. Error: Unable to find a match. bye, Heiko -- DENX Software Engineering GmbH, Managing Director: Wolfgang Denk HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany