Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

perf build: Do not fail on missing Build file

Allow nesting into directories without Build file. Currently we force
include of the Build file, which fails the build when the Build file is
missing.

We already support empty *-in.o' objects if there's nothing in the
directory to be compiled, so we can just use it for missing Build file
cases.

Also adding this case under tests.

Reported-by: Rabin Vincent <rabin.vincent@axis.com>
Signed-off-by: Jiri Olsa <jolsa@kernel.org>
Cc: David Ahern <dsahern@gmail.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Rabin Vincent <rabin.vincent@axis.com>
Link: http://lkml.kernel.org/r/1432914178-24086-1-git-send-email-jolsa@kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>

authored by

Jiri Olsa and committed by
Arnaldo Carvalho de Melo
d7a3d85e 9a4388c7

+4 -1
+1 -1
tools/build/Makefile.build
··· 37 37 38 38 # Build definitions 39 39 build-file := $(dir)/Build 40 - include $(build-file) 40 + -include $(build-file) 41 41 42 42 quiet_cmd_flex = FLEX $@ 43 43 quiet_cmd_bison = BISON $@
+1
tools/build/tests/ex/Build
··· 2 2 ex-y += a.o 3 3 ex-y += b.o 4 4 ex-y += empty/ 5 + ex-y += empty2/ 5 6 6 7 libex-y += c.o 7 8 libex-y += d.o
+2
tools/build/tests/ex/empty2/README
··· 1 + This directory is left intentionally without Build file 2 + to test proper nesting into Build-less directories.