From: Peter Korsgaard Date: Fri, 13 Jun 2008 14:28:57 +0000 (-0000) Subject: toolchain: also setup kernel headers when ext toolchain is used X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=f85cd12c170850aa44ba4bf12d2dfcc31e9716ed;p=buildroot.git toolchain: also setup kernel headers when ext toolchain is used Provide kernel headers when ext toolchain is used, so we can compile packages which need them. --- diff --git a/Makefile b/Makefile index b6622b12df..caabd690cf 100644 --- a/Makefile +++ b/Makefile @@ -196,7 +196,7 @@ PREFERRED_LIB_FLAGS:=--enable-static --enable-shared ifeq ($(BR2_TOOLCHAIN_SOURCE),y) BASE_TARGETS:=uclibc-configured binutils cross_compiler uclibc-target-utils kernel-headers else -BASE_TARGETS:=uclibc +BASE_TARGETS:=uclibc kernel-headers endif TARGETS:= diff --git a/toolchain/Config.in.2 b/toolchain/Config.in.2 index c99e4fb82e..bac00e784e 100644 --- a/toolchain/Config.in.2 +++ b/toolchain/Config.in.2 @@ -1,7 +1,8 @@ # -if BR2_TOOLCHAIN_SOURCE source "toolchain/kernel-headers/Config.in" + +if BR2_TOOLCHAIN_SOURCE source "toolchain/uClibc/Config.in" source "toolchain/binutils/Config.in" source "toolchain/gcc/Config.in" diff --git a/toolchain/kernel-headers/kernel-headers.mk b/toolchain/kernel-headers/kernel-headers.mk index 6cde8fba50..fc8acda051 100644 --- a/toolchain/kernel-headers/kernel-headers.mk +++ b/toolchain/kernel-headers/kernel-headers.mk @@ -6,13 +6,9 @@ # by a 'make clean' so don't put anything sacred in here... # ############################################################# -ifeq ($(BR2_TOOLCHAIN_EXTERNAL),y) -DEFAULT_KERNEL_HEADERS:=$(strip $(subst ",, $(BR2_LINUX26_VERSION))) -#")) -else + DEFAULT_KERNEL_HEADERS:=$(strip $(subst ",, $(BR2_DEFAULT_KERNEL_HEADERS))) #")) -endif LINUX_HEADERS_SITE:=127.0.0.1 LINUX_HEADERS_SOURCE:=unspecified-kernel-headers