diff options
| author | Nicolas Graves <ngraves@ngraves.fr> | 2026-04-28 09:49:30 +0200 |
|---|---|---|
| committer | Ludovic Courtès <ludo@gnu.org> | 2026-05-18 19:12:08 +0200 |
| commit | 31d51697eb46d3859e87ee4c1f05f98b0cf4af76 (patch) | |
| tree | 03605b263df032d7cac80e15e2947a0068a397b9 | |
| parent | 7e9a3cf120adf2451ccf2d56cceb287fa0272f64 (diff) | |
gnu: gcc-mesboot: Improve kernel headers fetch.
This is a follow-up to 1a15e067283e69bffe58cf68804e344a32ad1ef6 and
can be merged with it.
Signed-off-by: Ludovic Courtès <ludo@gnu.org>
| -rw-r--r-- | gnu/packages/commencement.scm | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/gnu/packages/commencement.scm b/gnu/packages/commencement.scm index 1e9d7b94fd1..dcac85536c5 100644 --- a/gnu/packages/commencement.scm +++ b/gnu/packages/commencement.scm | |||
| @@ -1855,20 +1855,23 @@ exec " gcc-bin "/" program | |||
| 1855 | (gcc (dirname (dirname bin-gcc))) | 1855 | (gcc (dirname (dirname bin-gcc))) |
| 1856 | (libc.a (search-input-file inputs "/lib/libc.a")) | 1856 | (libc.a (search-input-file inputs "/lib/libc.a")) |
| 1857 | (glibc (dirname (dirname libc.a))) | 1857 | (glibc (dirname (dirname libc.a))) |
| 1858 | (ioctl.h (search-input-file %build-inputs | 1858 | (kernel-headers |
| 1859 | "/include/asm/ioctl.h")) | 1859 | (search-input-directory inputs |
| 1860 | (kernel-headers (dirname (dirname (dirname ioctl.h))))) | 1860 | #$(if (system-hurd?) |
| 1861 | "include/mach" | ||
| 1862 | "include/linux"))) | ||
| 1863 | (kernel-headers-include (dirname kernel-headers))) | ||
| 1861 | (setenv "CONFIG_SHELL" (search-input-file inputs "bin/sh")) | 1864 | (setenv "CONFIG_SHELL" (search-input-file inputs "bin/sh")) |
| 1862 | (setenv "C_INCLUDE_PATH" | 1865 | (setenv "C_INCLUDE_PATH" |
| 1863 | (string-append | 1866 | (string-append |
| 1864 | gcc "/lib/gcc-lib/i686-unknown-linux-gnu/4.6.4/include" | 1867 | gcc "/lib/gcc-lib/i686-unknown-linux-gnu/4.6.4/include" |
| 1865 | ":" kernel-headers "/include" | 1868 | ":" kernel-headers-include |
| 1866 | ":" glibc "/include" | 1869 | ":" glibc "/include" |
| 1867 | ":" (getcwd) "/mpfr/src")) | 1870 | ":" (getcwd) "/mpfr/src")) |
| 1868 | (setenv "CPLUS_INCLUDE_PATH" | 1871 | (setenv "CPLUS_INCLUDE_PATH" |
| 1869 | (string-append | 1872 | (string-append |
| 1870 | gcc "/lib/gcc-lib/i686-unknown-linux-gnu/4.6.4/include" | 1873 | gcc "/lib/gcc-lib/i686-unknown-linux-gnu/4.6.4/include" |
| 1871 | ":" kernel-headers "/include" | 1874 | ":" kernel-headers-include |
| 1872 | ":" glibc "/include" | 1875 | ":" glibc "/include" |
| 1873 | ":" (getcwd) "/mpfr/src")) | 1876 | ":" (getcwd) "/mpfr/src")) |
| 1874 | (setenv "LIBRARY_PATH" | 1877 | (setenv "LIBRARY_PATH" |
