add pinctrl sample code
[firefly-linux-kernel-4.4.55.git] / arch / arm / libpie / Makefile
1 #
2 # linux/arch/arm/libpie/Makefile
3 #
4 ccflags-y       := -fpic -mno-single-pic-base -fno-builtin
5
6 obj-y           := relocate.o empty.o
7 obj-y           += lib1funcs.o ashldi3.o string.o
8
9 # string library code (-Os is enforced to keep it much smaller)
10 string = $(obj)/string.o
11 CFLAGS_string.o := -Os
12
13 $(obj)/string.c: $(srctree)/arch/$(SRCARCH)/boot/compressed/string.c
14         $(call cmd,shipped)
15
16 # For __aeabi_uidivmod
17 lib1funcs = $(obj)/lib1funcs.o
18
19 $(obj)/lib1funcs.S: $(srctree)/arch/$(SRCARCH)/lib/lib1funcs.S
20         $(call cmd,shipped)
21
22 # For __aeabi_llsl
23 ashldi3 = $(obj)/ashldi3.o
24
25 $(obj)/ashldi3.S: $(srctree)/arch/$(SRCARCH)/lib/ashldi3.S
26         $(call cmd,shipped)
27
28 $(obj)/libpie.o: $(string) $(lib1funcs) $(ashldi3) $(addprefix $(obj)/,$(OBJS))
29         $(call if_changed,ld)
30
31 # Make sure files are removed during clean
32 extra-y         += string.c lib1funcs.S ashldi3.S