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 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. -- 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