From 9d41458a8095fc58e355e3ecca6f96aa7d98d725 Mon Sep 17 00:00:00 2001 From: Marcel Ziswiler Date: Tue, 22 Jul 2014 08:03:06 +0200 Subject: apalis/colibri t20/t30: fix out-of-tree build The crypto folder is located in NVIDIA's common but erroneously created in Toradex' common which leads to the following error trying to build out-of-tree (e.g. make O=~/build/test): /home/user/gcc-linaro/bin/arm-linux-gnueabihf-gcc -g -O2 -fno-common -ffixed-r8 -msoft-float -D__KERNEL__ -DCONFIG_SYS_TEXT_BASE=0x80108000 -I/home/user/build/test/include2 -I/home/user/build/test/include -I/home/user/Sources/u-boot-toradex.git/include -fno-builtin -ffreestanding -nostdinc -isystem /home/user/gcc-linaro-arm-linux -gnueabihf-2012.09-20120921_linux/bin/../lib/gcc/arm-linux-gnueabihf/ 4.7.2/include -pipe -DCONFIG_ARM -D__ARM__ -marm -mabi=aapcs-linux -mno-thumb-interwork -march=armv5 -Werror -Wall -Wstrict-prototypes -fno-stack-protector -o /home/user/build/test/board/toradex/common/../ ../nvidia/common/pmu.o ../../nvidia/common/pmu.c -c Assembler messages: Fatal error: can't create /home/user/build/test/board/toradex/common/ ../../nvidia/common/pmu.o: No such file or directory make[1]: *** [/home/user/build/test/board/toradex/common/../../nvidia/ common/pmu.o] Error 2 make[1]: Leaving directory `/home/user/Sources/u-boot-toradex.git/ board/toradex/common' make: *** [/home/user/build/test/board/toradex/common/libtoradex.o] Error 2 Fix this by correctly creating it where it is expected. --- board/toradex/common/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/board/toradex/common/Makefile b/board/toradex/common/Makefile index e80105dce7..0204ac5031 100644 --- a/board/toradex/common/Makefile +++ b/board/toradex/common/Makefile @@ -20,7 +20,7 @@ include $(TOPDIR)/config.mk ifneq ($(OBJTREE),$(SRCTREE)) -$(shell mkdir -p $(obj)crypto) +$(shell mkdir -p $(obj)../../nvidia/common/crypto) endif LIB = $(obj)lib$(VENDOR).o -- cgit v1.2.3