2017-03-31 15:18:46 +00:00
|
|
|
modules-y += linux
|
2016-08-03 01:23:18 +00:00
|
|
|
|
2017-07-18 18:25:15 +00:00
|
|
|
linux_version := 4.9.38
|
2016-08-03 01:23:18 +00: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 16:24:16 +00:00
|
|
|
|
2017-02-01 16:47:43 +00:00
|
|
|
linux-4.9.7_hash := 0b61283b71c7397cb6b5ac3497845d3cdf8137ecd16ab39c8ac6cf5bb90e33dc
|
2017-03-31 19:59:37 +00:00
|
|
|
linux-4.9.20_hash := 48660806dd32fb8dcbcf5932291bf6cc7d29240070372230871e0f56fea81341
|
2017-07-18 18:25:15 +00:00
|
|
|
linux-4.9.38_hash := 76d789d87dd51d2fd58c095727171984fa4a992f5e25b9e3eb1e5fd5cd129074
|
2016-08-05 16:24:16 +00:00
|
|
|
|
|
|
|
linux_hash := $(linux-$(linux_version)_hash)
|
2016-08-03 01:23:18 +00:00
|
|
|
|
2017-01-27 22:55:44 +00:00
|
|
|
linux_configure := \
|
|
|
|
$(MAKE) \
|
2017-04-16 18:18:46 +00:00
|
|
|
CROSS_COMPILE="$(CROSS)" \
|
2017-01-27 22:55:44 +00:00
|
|
|
oldconfig \
|
|
|
|
|
2016-08-03 01:23:18 +00:00
|
|
|
linux_output := arch/x86/boot/bzImage
|
2016-11-23 17:11:08 +00:00
|
|
|
linux_config := linux.config
|
2017-01-27 22:55:44 +00:00
|
|
|
|
2017-04-05 23:20:53 +00:00
|
|
|
# qemu
|
2017-03-31 15:18:46 +00:00
|
|
|
linux_modules-$(CONFIG_LINUX_E1000) += drivers/net/ethernet/intel/e1000/e1000.ko
|
2017-04-05 23:20:53 +00:00
|
|
|
|
|
|
|
# x230
|
2017-03-31 15:18:46 +00:00
|
|
|
linux_modules-$(CONFIG_LINUX_E1000E) += drivers/net/ethernet/intel/e1000e/e1000e.ko
|
2017-04-05 23:20:53 +00:00
|
|
|
|
2017-03-31 15:18:46 +00:00
|
|
|
linux_modules-$(CONFIG_LINUX_USB) += drivers/usb/host/ehci-hcd.ko
|
|
|
|
linux_modules-$(CONFIG_LINUX_USB) += drivers/usb/host/ehci-pci.ko
|
|
|
|
linux_modules-$(CONFIG_LINUX_USB) += drivers/usb/host/xhci-hcd.ko
|
|
|
|
linux_modules-$(CONFIG_LINUX_USB) += drivers/usb/host/xhci-pci.ko
|
2017-04-05 23:20:53 +00:00
|
|
|
linux_modules-$(CONFIG_LINUX_USB) += drivers/usb/storage/usb-storage.ko
|
2017-03-28 20:32:58 +00:00
|
|
|
|
2017-01-28 23:38:29 +00:00
|
|
|
EXTRA_FLAGS := -fdebug-prefix-map=$(pwd)=heads -gno-record-gcc-switches
|
|
|
|
|
2017-01-27 22:55:44 +00:00
|
|
|
linux_target := \
|
2017-04-16 18:18:46 +00:00
|
|
|
CROSS_COMPILE="$(CROSS)" \
|
2017-01-28 23:38:29 +00: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-04-16 18:18:46 +00:00
|
|
|
$(MAKE_JOBS) \
|
2017-03-20 18:52:03 +00:00
|
|
|
|
|
|
|
# We cross compile linux now
|
2017-04-09 06:11:18 +00:00
|
|
|
linux_depends := musl-cross
|