2016-08-02 21:23:18 -04:00
|
|
|
modules += linux
|
|
|
|
|
2017-02-01 11:47:43 -05:00
|
|
|
linux_version := 4.9.7
|
2016-08-02 21:23:18 -04:00
|
|
|
linux_dir := linux-$(linux_version)
|
|
|
|
linux_tar := linux-$(linux_version).tar.xz
|
|
|
|
linux_url := https://cdn.kernel.org/pub/linux/kernel/v4.x/$(linux_tar)
|
2016-08-05 12:24:16 -04:00
|
|
|
|
2017-02-01 11:47:43 -05:00
|
|
|
linux-4.9.7_hash := 0b61283b71c7397cb6b5ac3497845d3cdf8137ecd16ab39c8ac6cf5bb90e33dc
|
2016-08-05 12:24:16 -04:00
|
|
|
|
|
|
|
linux_hash := $(linux-$(linux_version)_hash)
|
2016-08-02 21:23:18 -04:00
|
|
|
|
2017-01-27 17:55:44 -05:00
|
|
|
linux_configure := \
|
|
|
|
$(MAKE) \
|
|
|
|
CROSS_COMPILE=$(pwd)/crossgcc/x86_64-linux-musl/bin/x86_64-linux-musl- \
|
|
|
|
oldconfig \
|
|
|
|
|
2016-08-02 21:23:18 -04:00
|
|
|
linux_output := arch/x86/boot/bzImage
|
2016-11-23 12:11:08 -05:00
|
|
|
linux_config := linux.config
|
2017-01-27 17:55:44 -05:00
|
|
|
|
2017-03-28 16:32:58 -04:00
|
|
|
linux_modules := \
|
|
|
|
drivers/net/ethernet/intel/e1000/e1000.ko \
|
|
|
|
drivers/net/ethernet/intel/e1000e/e1000e.ko \
|
2017-03-28 17:05:04 -04:00
|
|
|
drivers/usb/host/xhci-hcd.ko \
|
|
|
|
drivers/usb/host/ehci-platform.ko \
|
|
|
|
drivers/usb/host/ehci-hcd.ko \
|
|
|
|
drivers/usb/host/xhci-plat-hcd.ko \
|
|
|
|
drivers/usb/host/xhci-pci.ko \
|
|
|
|
drivers/usb/host/ehci-pci.ko \
|
2017-03-28 16:32:58 -04:00
|
|
|
|
2017-01-28 18:38:29 -05:00
|
|
|
EXTRA_FLAGS := -fdebug-prefix-map=$(pwd)=heads -gno-record-gcc-switches
|
|
|
|
|
2017-01-27 17:55:44 -05:00
|
|
|
linux_target := \
|
|
|
|
CROSS_COMPILE=$(pwd)/crossgcc/x86_64-linux-musl/bin/x86_64-linux-musl- \
|
2017-01-28 18:38:29 -05:00
|
|
|
AFLAGS_KERNEL="$(EXTRA_FLAGS)" \
|
|
|
|
CFLAGS_KERNEL="$(EXTRA_FLAGS)" \
|
|
|
|
CFLAGS_MODULE="$(EXTRA_FLAGS)" \
|
|
|
|
KBUILD_BUILD_USER=user \
|
|
|
|
KBUILD_BUILD_HOST=heads-build \
|
|
|
|
KBUILD_BUILD_TIMESTAMP="1970-00-00" \
|
|
|
|
KBUILD_BUILD_VERSION=0 \
|
2017-03-17 13:18:27 -04:00
|
|
|
-j $(MAKE_JOBS) \
|
2017-03-20 14:52:03 -04:00
|
|
|
|
|
|
|
# We cross compile linux now
|
|
|
|
linux_depends := $(musl_dep)
|