|
@@ -33,6 +33,15 @@ KBUILD_CFLAGS += -ffreestanding
|
|
|
|
|
|
KBUILD_CFLAGS += -pipe -mlongcalls
|
|
KBUILD_CFLAGS += -pipe -mlongcalls
|
|
|
|
|
|
|
|
+vardirs := $(patsubst %,arch/xtensa/variants/%/,$(variant-y))
|
|
|
|
+plfdirs := $(patsubst %,arch/xtensa/platforms/%/,$(platform-y))
|
|
|
|
+
|
|
|
|
+ifeq ($(KBUILD_SRC),)
|
|
|
|
+KBUILD_CPPFLAGS += $(patsubst %,-I%include,$(vardirs) $(plfdirs))
|
|
|
|
+else
|
|
|
|
+KBUILD_CPPFLAGS += $(patsubst %,-I$(srctree)/%include,$(vardirs) $(plfdirs))
|
|
|
|
+endif
|
|
|
|
+
|
|
KBUILD_DEFCONFIG := iss_defconfig
|
|
KBUILD_DEFCONFIG := iss_defconfig
|
|
|
|
|
|
# ramdisk/initrd support
|
|
# ramdisk/initrd support
|
|
@@ -66,21 +75,6 @@ libs-y += arch/xtensa/lib/ $(LIBGCC)
|
|
|
|
|
|
boot := arch/xtensa/boot
|
|
boot := arch/xtensa/boot
|
|
|
|
|
|
-archinc := include/asm-xtensa
|
|
|
|
-
|
|
|
|
-archprepare: $(archinc)/.platform
|
|
|
|
-
|
|
|
|
-# Update processor variant and platform symlinks if something which affects
|
|
|
|
-# them changed.
|
|
|
|
-
|
|
|
|
-$(archinc)/.platform: $(wildcard include/config/arch/*.h) include/config/auto.conf
|
|
|
|
- @echo ' SYMLINK $(archinc)/variant -> $(archinc)/variant-$(VARIANT)'
|
|
|
|
- $(Q)mkdir -p $(archinc)
|
|
|
|
- $(Q)ln -fsn $(srctree)/$(archinc)/variant-$(VARIANT) $(archinc)/variant
|
|
|
|
- @echo ' SYMLINK $(archinc)/platform -> $(archinc)/platform-$(PLATFORM)'
|
|
|
|
- $(Q)ln -fsn $(srctree)/$(archinc)/platform-$(PLATFORM) $(archinc)/platform
|
|
|
|
- @touch $@
|
|
|
|
-
|
|
|
|
|
|
|
|
all: zImage
|
|
all: zImage
|
|
|
|
|
|
@@ -89,10 +83,6 @@ bzImage : zImage
|
|
zImage zImage.initrd: vmlinux
|
|
zImage zImage.initrd: vmlinux
|
|
$(Q)$(MAKE) $(build)=$(boot) $@
|
|
$(Q)$(MAKE) $(build)=$(boot) $@
|
|
|
|
|
|
-CLEAN_FILES += arch/xtensa/vmlinux.lds \
|
|
|
|
- $(archinc)/platform $(archinc)/variant \
|
|
|
|
- $(archinc)/.platform
|
|
|
|
-
|
|
|
|
define archhelp
|
|
define archhelp
|
|
@echo '* zImage - Compressed kernel image (arch/xtensa/boot/images/zImage.*)'
|
|
@echo '* zImage - Compressed kernel image (arch/xtensa/boot/images/zImage.*)'
|
|
endef
|
|
endef
|