diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 00000000..05a0e946 --- /dev/null +++ b/.gitattributes @@ -0,0 +1 @@ +*.xz filter=lfs diff=lfs merge=lfs -text diff --git a/.gitmodules b/.gitmodules new file mode 100644 index 00000000..b373575e --- /dev/null +++ b/.gitmodules @@ -0,0 +1,3 @@ +[submodule "buildroot/linux/linux-5.4.99"] + path = buildroot/linux/linux-5.4.99 + url = https://github.com/YuzukiHD/linux-5.4.99 diff --git a/buildroot/linux/Config.in b/buildroot/linux/Config.in index f83474e1..974d1bb7 100644 --- a/buildroot/linux/Config.in +++ b/buildroot/linux/Config.in @@ -98,6 +98,12 @@ config BR2_LINUX_KERNEL_CUSTOM_SVN help This option allows Buildroot to get the Linux kernel source code from a Subversion repository. + +config BR2_LINUX_KERNEL_CUSTOM_LOCAL + bool "Local directory" + help + This option allows Buildroot to get the Linux kernel source + code from a local directory. endchoice @@ -109,6 +115,12 @@ config BR2_LINUX_KERNEL_CUSTOM_TARBALL_LOCATION string "URL of custom kernel tarball" depends on BR2_LINUX_KERNEL_CUSTOM_TARBALL +config BR2_LINUX_KERNEL_CUSTOM_LOCAL_PATH + string "Path to the local directory" + depends on BR2_LINUX_KERNEL_CUSTOM_LOCAL + help + Path to the local directory with the Linux kernel source code. + if BR2_LINUX_KERNEL_CUSTOM_GIT || BR2_LINUX_KERNEL_CUSTOM_HG || BR2_LINUX_KERNEL_CUSTOM_SVN config BR2_LINUX_KERNEL_CUSTOM_REPO_URL @@ -136,6 +148,7 @@ config BR2_LINUX_KERNEL_VERSION default "custom" if BR2_LINUX_KERNEL_CUSTOM_TARBALL default BR2_LINUX_KERNEL_CUSTOM_REPO_VERSION \ if BR2_LINUX_KERNEL_CUSTOM_GIT || BR2_LINUX_KERNEL_CUSTOM_HG || BR2_LINUX_KERNEL_CUSTOM_SVN + default "local" if BR2_LINUX_KERNEL_CUSTOM_LOCAL # # Patch selection diff --git a/buildroot/linux/linux-5.4.99 b/buildroot/linux/linux-5.4.99 new file mode 160000 index 00000000..90b0fee6 --- /dev/null +++ b/buildroot/linux/linux-5.4.99 @@ -0,0 +1 @@ +Subproject commit 90b0fee66767e740c2c276e60aaab4dd92f81220 diff --git a/buildroot/linux/linux.mk b/buildroot/linux/linux.mk index 010ed349..84e6c135 100644 --- a/buildroot/linux/linux.mk +++ b/buildroot/linux/linux.mk @@ -34,6 +34,9 @@ LINUX_SITE_METHOD = hg else ifeq ($(BR2_LINUX_KERNEL_CUSTOM_SVN),y) LINUX_SITE = $(call qstrip,$(BR2_LINUX_KERNEL_CUSTOM_REPO_URL)) LINUX_SITE_METHOD = svn +else ifeq ($(BR2_LINUX_KERNEL_CUSTOM_LOCAL),y) +LINUX_SITE = $(call qstrip,$(BR2_LINUX_KERNEL_CUSTOM_LOCAL_PATH)) +LINUX_SITE_METHOD = local else ifeq ($(BR2_LINUX_KERNEL_LATEST_CIP_VERSION)$(BR2_LINUX_KERNEL_LATEST_CIP_RT_VERSION),y) LINUX_SOURCE = linux-cip-$(LINUX_VERSION).tar.gz LINUX_SITE = https://git.kernel.org/pub/scm/linux/kernel/git/cip/linux-cip.git/snapshot