|
@@ -22,8 +22,14 @@ all: $(obj)/zImage
|
|
BOOTCFLAGS := -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs \
|
|
BOOTCFLAGS := -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs \
|
|
-fno-strict-aliasing -Os -msoft-float -pipe \
|
|
-fno-strict-aliasing -Os -msoft-float -pipe \
|
|
-fomit-frame-pointer -fno-builtin -fPIC -nostdinc \
|
|
-fomit-frame-pointer -fno-builtin -fPIC -nostdinc \
|
|
- -isystem $(shell $(CROSS32CC) -print-file-name=include) \
|
|
|
|
- -mbig-endian
|
|
|
|
|
|
+ -isystem $(shell $(CROSS32CC) -print-file-name=include)
|
|
|
|
+ifdef CONFIG_PPC64_BOOT_WRAPPER
|
|
|
|
+BOOTCFLAGS += -m64
|
|
|
|
+endif
|
|
|
|
+ifdef CONFIG_CPU_BIG_ENDIAN
|
|
|
|
+BOOTCFLAGS += -mbig-endian
|
|
|
|
+endif
|
|
|
|
+
|
|
BOOTAFLAGS := -D__ASSEMBLY__ $(BOOTCFLAGS) -traditional -nostdinc
|
|
BOOTAFLAGS := -D__ASSEMBLY__ $(BOOTCFLAGS) -traditional -nostdinc
|
|
|
|
|
|
ifdef CONFIG_DEBUG_INFO
|
|
ifdef CONFIG_DEBUG_INFO
|
|
@@ -142,7 +148,11 @@ $(addprefix $(obj)/,$(libfdt) $(libfdtheader)): $(obj)/%: $(srctree)/scripts/dtc
|
|
$(obj)/empty.c:
|
|
$(obj)/empty.c:
|
|
@touch $@
|
|
@touch $@
|
|
|
|
|
|
-$(obj)/zImage.lds $(obj)/zImage.coff.lds $(obj)/zImage.ps3.lds: $(obj)/%: $(srctree)/$(src)/%.S
|
|
|
|
|
|
+$(obj)/zImage.lds: $(obj)/%: $(srctree)/$(src)/%.S
|
|
|
|
+ $(CROSS32CC) $(cpp_flags) -E -Wp,-MD,$(depfile) -P -Upowerpc \
|
|
|
|
+ -D__ASSEMBLY__ -DLINKER_SCRIPT -o $@ $<
|
|
|
|
+
|
|
|
|
+$(obj)/zImage.coff.lds $(obj)/zImage.ps3.lds : $(obj)/%: $(srctree)/$(src)/%.S
|
|
@cp $< $@
|
|
@cp $< $@
|
|
|
|
|
|
clean-files := $(zlib) $(zlibheader) $(zliblinuxheader) \
|
|
clean-files := $(zlib) $(zlibheader) $(zliblinuxheader) \
|