mirror of
https://github.com/motioneye-project/motioneyeos.git
synced 2025-07-28 05:36:32 +00:00
Added local directory as source of kernel code
Add the option to use a local directory as the source for building the Linux kernel, which can be useful during kernel development. Signed-off-by: Rafal Fabich <rafal.fabich@gmail.com> Acked-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be> Tested-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
This commit is contained in:
parent
15fed7179a
commit
73da2ff6f7
@ -63,6 +63,12 @@ config BR2_LINUX_KERNEL_CUSTOM_HG
|
|||||||
This option allows Buildroot to get the Linux kernel source
|
This option allows Buildroot to get the Linux kernel source
|
||||||
code from a Mercurial repository.
|
code from a Mercurial 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
|
endchoice
|
||||||
|
|
||||||
config BR2_LINUX_KERNEL_CUSTOM_VERSION_VALUE
|
config BR2_LINUX_KERNEL_CUSTOM_VERSION_VALUE
|
||||||
@ -90,6 +96,12 @@ config BR2_LINUX_KERNEL_CUSTOM_REPO_VERSION
|
|||||||
|
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
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.
|
||||||
|
|
||||||
config BR2_LINUX_KERNEL_VERSION
|
config BR2_LINUX_KERNEL_VERSION
|
||||||
string
|
string
|
||||||
default "3.13.1" if BR2_LINUX_KERNEL_LATEST_VERSION
|
default "3.13.1" if BR2_LINUX_KERNEL_LATEST_VERSION
|
||||||
@ -99,6 +111,7 @@ config BR2_LINUX_KERNEL_VERSION
|
|||||||
default "custom" if BR2_LINUX_KERNEL_CUSTOM_TARBALL
|
default "custom" if BR2_LINUX_KERNEL_CUSTOM_TARBALL
|
||||||
default BR2_LINUX_KERNEL_CUSTOM_REPO_VERSION \
|
default BR2_LINUX_KERNEL_CUSTOM_REPO_VERSION \
|
||||||
if BR2_LINUX_KERNEL_CUSTOM_GIT || BR2_LINUX_KERNEL_CUSTOM_HG
|
if BR2_LINUX_KERNEL_CUSTOM_GIT || BR2_LINUX_KERNEL_CUSTOM_HG
|
||||||
|
default "custom" if BR2_LINUX_KERNEL_CUSTOM_LOCAL
|
||||||
|
|
||||||
#
|
#
|
||||||
# Patch selection
|
# Patch selection
|
||||||
|
@ -9,10 +9,13 @@ LINUX_LICENSE = GPLv2
|
|||||||
LINUX_LICENSE_FILES = COPYING
|
LINUX_LICENSE_FILES = COPYING
|
||||||
|
|
||||||
# Compute LINUX_SOURCE and LINUX_SITE from the configuration
|
# Compute LINUX_SOURCE and LINUX_SITE from the configuration
|
||||||
ifeq ($(LINUX_VERSION),custom)
|
ifeq ($(BR2_LINUX_KERNEL_CUSTOM_TARBALL),y)
|
||||||
LINUX_TARBALL = $(call qstrip,$(BR2_LINUX_KERNEL_CUSTOM_TARBALL_LOCATION))
|
LINUX_TARBALL = $(call qstrip,$(BR2_LINUX_KERNEL_CUSTOM_TARBALL_LOCATION))
|
||||||
LINUX_SITE = $(patsubst %/,%,$(dir $(LINUX_TARBALL)))
|
LINUX_SITE = $(patsubst %/,%,$(dir $(LINUX_TARBALL)))
|
||||||
LINUX_SOURCE = $(notdir $(LINUX_TARBALL))
|
LINUX_SOURCE = $(notdir $(LINUX_TARBALL))
|
||||||
|
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_CUSTOM_GIT),y)
|
else ifeq ($(BR2_LINUX_KERNEL_CUSTOM_GIT),y)
|
||||||
LINUX_SITE = $(call qstrip,$(BR2_LINUX_KERNEL_CUSTOM_REPO_URL))
|
LINUX_SITE = $(call qstrip,$(BR2_LINUX_KERNEL_CUSTOM_REPO_URL))
|
||||||
LINUX_SITE_METHOD = git
|
LINUX_SITE_METHOD = git
|
||||||
|
Loading…
x
Reference in New Issue
Block a user