Merge tag 'clk-fixes-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git...
[firefly-linux-kernel-4.4.55.git] / tools / build / feature / Makefile
index 463ed8f2a267bd6ad58f0a96656ea342574d3865..74ca42093d70d72fac5a4b1776237be9873f480a 100644 (file)
@@ -33,7 +33,8 @@ FILES=                                        \
        test-compile-32.bin             \
        test-compile-x32.bin            \
        test-zlib.bin                   \
-       test-lzma.bin
+       test-lzma.bin                   \
+       test-bpf.bin
 
 CC := $(CROSS_COMPILE)gcc -MD
 PKG_CONFIG := $(CROSS_COMPILE)pkg-config
@@ -69,8 +70,13 @@ test-libelf.bin:
 test-glibc.bin:
        $(BUILD)
 
+DWARFLIBS := -ldw
+ifeq ($(findstring -static,${LDFLAGS}),-static)
+DWARFLIBS += -lelf -lebl -lz -llzma -lbz2
+endif
+
 test-dwarf.bin:
-       $(BUILD) -ldw
+       $(BUILD) $(DWARFLIBS)
 
 test-libelf-mmap.bin:
        $(BUILD) -lelf
@@ -156,6 +162,9 @@ test-zlib.bin:
 test-lzma.bin:
        $(BUILD) -llzma
 
+test-bpf.bin:
+       $(BUILD)
+
 -include *.d
 
 ###############################