Re: [PATCH v2 0/3] tools/gpio: switch to tools buildsystem

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sun, 2016-06-19 at 22:07 +0900, Alexandre Courbot wrote:
> On Sun, Jun 19, 2016 at 12:24 AM, Andy Shevchenko
> <andriy.shevchenko@xxxxxxxxxxxxxxx> wrote:
> > Current environment is not allowed to easily build the tools.
> > Move to tools buildsystem to allow user build gpio tools using only
> > existing
> > kernel sources. Besides that support O=/path/to/build/dir option.
> 
> Very good idea. I just have a few issues with the current patchset:
> 
> 1) I think patch 1 and 2 should be merged, otherwise we would have one
> commit where the GPIO tools are not available anymore

No objection!

> 2) When trying to cross-compile the tools, I am hitting the following
> error:
> 
>   arm-linux-gnueabihf-gcc -Wp,-MD,./.lsgpio.o.d,-MT,lsgpio.o -O2 -Wall
> -g -D_GNU_SOURCE -Iinclude -D"BUILD_STR(s)=#s"   -c -o lsgpio.o
> lsgpio.c
>   arm-linux-gnueabihf-gcc -Wp,-MD,./.gpio-utils.o.d,-MT,gpio-utils.o
> -O2 -Wall -g -D_GNU_SOURCE -Iinclude -D"BUILD_STR(s)=#s"   -c -o
> gpio-utils.o gpio-utils.c
>    ld -r -o lsgpio-in.o  lsgpio.o gpio-utils.o
> lsgpio.o: error adding symbols: File in wrong format
> 
> Looks like the host linker is invoked instead of the target one.

Can you try to add

LD = $(CROSS_COMPILE)ld

into Makefile and re-run?

-- 

Andy Shevchenko <andriy.shevchenko@xxxxxxxxxxxxxxx>
Intel Finland Oy
--
To unsubscribe from this list: send the line "unsubscribe linux-gpio" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux SPI]     [Linux Kernel]     [Linux ARM (vger)]     [Linux ARM MSM]     [Linux Omap]     [Linux Arm]     [Linux Tegra]     [Fedora ARM]     [Linux for Samsung SOC]     [eCos]     [Linux Fastboot]     [Gcc Help]     [Git]     [DCCP]     [IETF Announce]     [Security]     [Linux MIPS]     [Yosemite Campsites]

  Powered by Linux