diff options
Diffstat (limited to 'arch/arm/boot/compressed/Makefile')
| -rw-r--r-- | arch/arm/boot/compressed/Makefile | 21 |
1 files changed, 19 insertions, 2 deletions
diff --git a/arch/arm/boot/compressed/Makefile b/arch/arm/boot/compressed/Makefile index c20ddc69d950..55f86349d547 100644 --- a/arch/arm/boot/compressed/Makefile +++ b/arch/arm/boot/compressed/Makefile | |||
| @@ -93,19 +93,36 @@ suffix_$(CONFIG_KERNEL_GZIP) = gzip | |||
| 93 | suffix_$(CONFIG_KERNEL_LZO) = lzo | 93 | suffix_$(CONFIG_KERNEL_LZO) = lzo |
| 94 | suffix_$(CONFIG_KERNEL_LZMA) = lzma | 94 | suffix_$(CONFIG_KERNEL_LZMA) = lzma |
| 95 | 95 | ||
| 96 | # Borrowed libfdt files for the ATAG compatibility mode | ||
| 97 | |||
| 98 | libfdt := fdt_rw.c fdt_ro.c fdt_wip.c fdt.c | ||
| 99 | libfdt_hdrs := fdt.h libfdt.h libfdt_internal.h | ||
| 100 | |||
| 101 | libfdt_objs := $(addsuffix .o, $(basename $(libfdt))) | ||
| 102 | |||
| 103 | $(addprefix $(obj)/,$(libfdt) $(libfdt_hdrs)): $(obj)/%: $(srctree)/scripts/dtc/libfdt/% | ||
| 104 | $(call cmd,shipped) | ||
| 105 | |||
| 106 | $(addprefix $(obj)/,$(libfdt_objs) atags_to_fdt.o): \ | ||
| 107 | $(addprefix $(obj)/,$(libfdt_hdrs)) | ||
| 108 | |||
| 109 | ifeq ($(CONFIG_ARM_ATAG_DTB_COMPAT),y) | ||
| 110 | OBJS += $(libfdt_objs) atags_to_fdt.o | ||
| 111 | endif | ||
| 112 | |||
| 96 | targets := vmlinux vmlinux.lds \ | 113 | targets := vmlinux vmlinux.lds \ |
| 97 | piggy.$(suffix_y) piggy.$(suffix_y).o \ | 114 | piggy.$(suffix_y) piggy.$(suffix_y).o \ |
| 98 | font.o font.c head.o misc.o $(OBJS) | 115 | font.o font.c head.o misc.o $(OBJS) |
| 99 | 116 | ||
| 100 | # Make sure files are removed during clean | 117 | # Make sure files are removed during clean |
| 101 | extra-y += piggy.gzip piggy.lzo piggy.lzma lib1funcs.S | 118 | extra-y += piggy.gzip piggy.lzo piggy.lzma lib1funcs.S $(libfdt) $(libfdt_hdrs) |
| 102 | 119 | ||
| 103 | ifeq ($(CONFIG_FUNCTION_TRACER),y) | 120 | ifeq ($(CONFIG_FUNCTION_TRACER),y) |
| 104 | ORIG_CFLAGS := $(KBUILD_CFLAGS) | 121 | ORIG_CFLAGS := $(KBUILD_CFLAGS) |
| 105 | KBUILD_CFLAGS = $(subst -pg, , $(ORIG_CFLAGS)) | 122 | KBUILD_CFLAGS = $(subst -pg, , $(ORIG_CFLAGS)) |
| 106 | endif | 123 | endif |
| 107 | 124 | ||
| 108 | ccflags-y := -fpic -fno-builtin | 125 | ccflags-y := -fpic -fno-builtin -I$(obj) |
| 109 | asflags-y := -Wa,-march=all | 126 | asflags-y := -Wa,-march=all |
| 110 | 127 | ||
| 111 | # Supply kernel BSS size to the decompressor via a linker symbol. | 128 | # Supply kernel BSS size to the decompressor via a linker symbol. |
