mirror of
https://github.com/linuxboot/heads.git
synced 2024-12-19 21:17:55 +00:00
Use kernel headers from our Linux kernel tree (issue #188)
This commit is contained in:
parent
ad732939c3
commit
964b967c9e
@ -1,18 +0,0 @@
|
||||
modules-y += kernel-headers
|
||||
|
||||
# we install kernel-headers from sabotage linux, a musl-libc based
|
||||
# distribution, that works well with busybox and other tools.
|
||||
|
||||
kernel-headers_version := 3.12.6-5
|
||||
kernel-headers_dir := kernel-headers-$(kernel-headers_version)
|
||||
kernel-headers_tar := kernel-headers-$(kernel-headers_version).tar.gz
|
||||
kernel-headers_url := https://github.com/sabotage-linux/kernel-headers/archive/v$(kernel-headers_version).tar.gz
|
||||
kernel-headers_hash := ecf4db8781dc50a21cbc4cb17b039f96aede53f9da13435a3201373abb49b96b
|
||||
|
||||
kernel-headers_configure :=
|
||||
|
||||
kernel-headers_target := \
|
||||
ARCH=x86_64 \
|
||||
prefix="$(INSTALL)" \
|
||||
install
|
||||
|
@ -12,7 +12,7 @@ linux_hash := $(linux-$(linux_version)_hash)
|
||||
|
||||
linux_configure := \
|
||||
$(MAKE) \
|
||||
CROSS_COMPILE=$(pwd)/crossgcc/x86_64-linux-musl/bin/x86_64-linux-musl- \
|
||||
CROSS_COMPILE="$(CROSS)" \
|
||||
oldconfig \
|
||||
|
||||
linux_output := arch/x86/boot/bzImage
|
||||
@ -33,7 +33,7 @@ linux_modules-$(CONFIG_LINUX_USB) += drivers/usb/storage/usb-storage.ko
|
||||
EXTRA_FLAGS := -fdebug-prefix-map=$(pwd)=heads -gno-record-gcc-switches
|
||||
|
||||
linux_target := \
|
||||
CROSS_COMPILE=$(pwd)/crossgcc/x86_64-linux-musl/bin/x86_64-linux-musl- \
|
||||
CROSS_COMPILE="$(CROSS)" \
|
||||
AFLAGS_KERNEL="$(EXTRA_FLAGS)" \
|
||||
CFLAGS_KERNEL="$(EXTRA_FLAGS)" \
|
||||
CFLAGS_MODULE="$(EXTRA_FLAGS)" \
|
||||
@ -41,7 +41,7 @@ linux_target := \
|
||||
KBUILD_BUILD_HOST=heads-build \
|
||||
KBUILD_BUILD_TIMESTAMP="1970-00-00" \
|
||||
KBUILD_BUILD_VERSION=0 \
|
||||
-j $(MAKE_JOBS) \
|
||||
$(MAKE_JOBS) \
|
||||
|
||||
# We cross compile linux now
|
||||
linux_depends := musl-cross
|
||||
|
12
modules/musl
12
modules/musl
@ -33,4 +33,14 @@ musl_libraries := \
|
||||
lib/libc.so \
|
||||
|
||||
|
||||
musl_depends := kernel-headers musl-cross
|
||||
musl_depends := musl-cross
|
||||
|
||||
# Fake a target so that musl will force a header install by the
|
||||
# Linux kernel sources.
|
||||
musl.intermediate: $(INSTALL)/include/linux/limits.h
|
||||
$(INSTALL)/include/linux/limits.h: $(build)/$(linux_dir)/.canary
|
||||
$(MAKE) \
|
||||
-C "$(build)/$(linux_dir)" \
|
||||
INSTALL_HDR_PATH="$(INSTALL)" \
|
||||
headers_install
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user