diff options
author | Mike Frysinger <vapier@gentoo.org> | 2006-01-04 04:52:34 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2006-01-04 04:52:34 +0000 |
commit | e420a8870a36ba7bda42b5441dedd1e3cb7c2efd (patch) | |
tree | 7a6ee8a487f5ee6cdd7f1353254cd9ce8151ea31 /toolchain/kernel-headers/kernel-headers.mk | |
parent | b36f67cc85fe3eeb6296987fc0f79c2f62a84912 (diff) |
incorporate patches from marc in bug #273 to add support for nios2
Diffstat (limited to 'toolchain/kernel-headers/kernel-headers.mk')
-rw-r--r-- | toolchain/kernel-headers/kernel-headers.mk | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/toolchain/kernel-headers/kernel-headers.mk b/toolchain/kernel-headers/kernel-headers.mk index 64b88dd7e..f77afa058 100644 --- a/toolchain/kernel-headers/kernel-headers.mk +++ b/toolchain/kernel-headers/kernel-headers.mk @@ -106,6 +106,9 @@ endif $(LINUX_HEADERS_DIR)/.patched: $(LINUX_HEADERS_DIR)/.unpacked toolchain/patch-kernel.sh $(LINUX_HEADERS_DIR) toolchain/kernel-headers linux-libc-headers-$(LINUX_VERSION)\*.patch +ifeq ($(strip $(ARCH)),nios2) + toolchain/patch-kernel.sh $(LINUX_HEADERS_DIR) toolchain/kernel-headers linux-libc-headers-$(LINUX_VERSION)-nios2nommu.patch.conditional +endif touch $(LINUX_HEADERS_DIR)/.patched $(LINUX_HEADERS_DIR)/.configured: $(LINUX_HEADERS_DIR)/.patched @@ -124,6 +127,8 @@ $(LINUX_HEADERS_DIR)/.configured: $(LINUX_HEADERS_DIR)/.patched (cd $(LINUX_HEADERS_DIR)/include; ln -fs asm-mips$(NOMMU) asm;) \ elif [ "$(ARCH)" = "mipsel" ];then \ (cd $(LINUX_HEADERS_DIR)/include; ln -fs asm-mips$(NOMMU) asm;) \ + elif [ "$(ARCH)" = "nios2" ];then \ + (cd $(LINUX_HEADERS_DIR)/include; ln -fs asm-nios2nommu asm;) \ elif [ "$(ARCH)" = "arm" ];then \ (cd $(LINUX_HEADERS_DIR)/include; ln -fs asm-arm$(NOMMU) asm; \ cd asm; \ |