Install Headers Target
I have been trying to build a kernel, toolchain and rootfs using buildroot.
Buildroot uses the install-headers target of the kernel to get the headers to build a toolchain.
I tried to build a the uClibc-gcc toolchain combo was missing 2 header files to do the build.
This I fixed by patching Kbuild in asm-mips dir
See below:
diff -urN overlay_orig/include/asm-mips/Kbuild overlay/include/asm-mips/Kbuild
--- a/include/asm-mips/Kbuild 2007-01-17 12:57:20.000000000 +0000
+++b/include/asm-mips/Kbuild 2007-01-17 12:53:46.000000000 +0000
@@ -1,3 +1,3 @@
include include/asm-generic/Kbuild.asm
-header-y += cachectl.h sgidefs.h sysmips.h +header-y += asm.h cachectl.h regdef.h sgidefs.h sysmips.h
Is it possible for this to go in? (Any one any problems with this patch) Is this mailing list the correct one for this patch?
Hope it helps
Daniel Laird
Signature · 2 lines
View this message in context: http://www.nabble.com/Install-Headers-Target-tf3032928.html#a8426876 Sent from the linux-mips main mailing list archive at Nabble.com.
Quoted 19 lines · Daniel Laird
I have been trying to build a kernel, toolchain and rootfs using buildroot.
Buildroot uses the install-headers target of the kernel to get the headers to build a toolchain.
I tried to build a the uClibc-gcc toolchain combo was missing 2 header files to do the build.
This I fixed by patchingKbuildin asm-mips dir
See below:
diff -urN overlay_orig/include/asm-mips/Kbuild overlay/include/asm-mips/Kbuild
--- a/include/asm-mips/Kbuild 2007-01-17 12:57:20.000000000 +0000
+++b/include/asm-mips/Kbuild 2007-01-17 12:53:46.000000000 +0000(quoted diff) +1
-1@@ -1,3 +1,3 @@ include include/asm-generic/Kbuild.asm -header-y += cachectl.h sgidefs.h sysmips.h +header-y += asm.h cachectl.h regdef.h sgidefs.h sysmips.h
Quoted 2 lines
Is it possible for this to go in? (Any one any problems with this patch) Is this mailing list the correct one for this patch?
For a glibc configuration those files are provided by glibc. I think uClibc should do the same, the files aren't Linux specific.
Thiemo
Quoted 5 lines · Thiemo Seufer
Quoted 2 lines
Is it possible for this to go in? (Any one any problems with this patch) Is this mailing list the correct one for this patch?
For a glibc configuration those files are provided by glibc. I think uClibc should do the same, the files aren't Linux specific.
uClibc svn already do the same. If any references to asm/asm.h, asm/regdef was remained in uClibc, please fix them.
---
Atsushi Nemoto
Quoted 20 lines · Daniel Laird
I have been trying to build a kernel, toolchain and rootfs using buildroot.
Buildroot uses the install-headers target of the kernel to get the headers to build a toolchain.
I tried to build a the uClibc-gcc toolchain combo was missing 2 header files to do the build.
This I fixed by patchingKbuildin asm-mips dir
See below:
diff -urN overlay_orig/include/asm-mips/Kbuild overlay/include/asm-mips/Kbuild
--- a/include/asm-mips/Kbuild 2007-01-17 12:57:20.000000000 +0000
+++b/include/asm-mips/Kbuild 2007-01-17 12:53:46.000000000 +0000(quoted diff) +1
-1@@ -1,3 +1,3 @@ include include/asm-generic/Kbuild.asm -header-y += cachectl.h sgidefs.h sysmips.h +header-y += asm.h cachectl.h regdef.h sgidefs.h sysmips.h
Quoted 7 lines
Is it possible for this to go in? (Any one any problems with this patch) Is this mailing list the correct one for this patch?
Hope it helps
Daniel Laird
Ok, Must be because I am using a released version of uClibc (hence 0.9.28) and therefore not picked up the necessary fixes. This should go when 0.9.29 is released!!
Daniel
Signature · 2 lines
View this message in context: http://www.nabble.com/Install-Headers-Target-tf3032928.html#a8430190 Sent from the linux-mips main mailing list archive at Nabble.com.