summaryrefslogtreecommitdiff
path: root/stringify/stringify.h
blob: e9f188ee0421d3d83d5a3d7a661f184637d73a40 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
/*
 * Taken from Linux Kernel source code.
 *
 * Licensed under the GNU General Public License Version 2.
 */

#ifndef _STRINGIFY_H_
#define _STRINGIFY_H_

/*
 * Indirect stringification.  Doing two levels allows the parameter to be a
 * macro itself.  For example, compile with -DFOO=bar, __stringify(FOO)
 * converts to "bar".
 */

#define __stringify_1(x...)	#x
#define __stringify(x...)	__stringify_1(x)

#endif /* _STRINGIFY_H_ */
1925459b4d92d92e62d67ddc763cda650d2aa79c (patch) treeaceb17bc00a469f16704fccd8c8fbc4eb7c0fe27 parent7a29c087ff80f5d534bd6729c852099fc572c8d0 (diff)
tools build: Fix feature Makefile issues with 'O='
When building perf binaries outside the source tree with 'make O=<dir>', the auto-detected features get re-tested for every build, which is unnecessary and inconsistent with the behavior seen when building directly in the source tree. Another issue is that 'make O=<dir> clean' doesn't remove the feature files from the object tree. Fix these problems by looking for the binaries in the $(OUTPUT) directory. Signed-off-by: Josh Poimboeuf <jpoimboe@redhat.com> Acked-by: Jiri Olsa <jolsa@kernel.org> Cc: Namhyung Kim <namhyung@kernel.org> Cc: Peter Zijlstra <peterz@infradead.org> Link: http://lkml.kernel.org/r/113bd01530e9761778c60a75a96c65fc59860f68.1450193761.git.jpoimboe@redhat.com Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat