mirror of
https://github.com/motioneye-project/motioneyeos.git
synced 2025-08-01 15:37:44 +00:00
- improve the way host prerequisites for "dependencies" are established
This commit is contained in:
parent
26b4c3782b
commit
aa81a06508
@ -59,14 +59,6 @@ ifndef LINUX26_KERNEL
|
|||||||
LINUX26_KERNEL=$(BINARIES_DIR)/linux-kernel-$(LINUX26_VERSION)-$(KERNEL_ARCH)
|
LINUX26_KERNEL=$(BINARIES_DIR)/linux-kernel-$(LINUX26_VERSION)-$(KERNEL_ARCH)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifeq ($(BR2_KERNEL_HEADERS_LZMA),y)
|
|
||||||
ifeq ($(BR2_KERNEL_HEADERS_LZMA_INSTALL),y)
|
|
||||||
DEPEND_ON_HOST_LZMA:=lzma-host-install
|
|
||||||
else
|
|
||||||
DEPEND_ON_HOST_LZMA:=lzma-host
|
|
||||||
endif
|
|
||||||
endif
|
|
||||||
|
|
||||||
# Version of Linux AFTER patches
|
# Version of Linux AFTER patches
|
||||||
LINUX26_DIR=$(BUILD_DIR)/linux-$(LINUX26_VERSION)
|
LINUX26_DIR=$(BUILD_DIR)/linux-$(LINUX26_VERSION)
|
||||||
|
|
||||||
@ -165,7 +157,7 @@ linux26-menuconfig: $(LINUX26_DIR)/.patched host-sed
|
|||||||
$(MAKE) $(LINUX26_MAKE_FLAGS) -C $(LINUX26_DIR) menuconfig
|
$(MAKE) $(LINUX26_MAKE_FLAGS) -C $(LINUX26_DIR) menuconfig
|
||||||
-[ -f $(LINUX26_DIR)/.config ] && touch $(LINUX26_DIR)/.configured
|
-[ -f $(LINUX26_DIR)/.config ] && touch $(LINUX26_DIR)/.configured
|
||||||
|
|
||||||
linux26: $(DEPEND_ON_HOST_LZMA) $(INITRAMFS_TARGET) $(LINUX26_KERNEL)
|
linux26: $(INITRAMFS_TARGET) $(LINUX26_KERNEL)
|
||||||
|
|
||||||
$(LINUX26_DIR)/.modules_installed: $(TARGET_DIR)/lib/modules/$(LINUX26_VERSION)/modules.dep
|
$(LINUX26_DIR)/.modules_installed: $(TARGET_DIR)/lib/modules/$(LINUX26_VERSION)/modules.dep
|
||||||
touch $@
|
touch $@
|
||||||
|
@ -5,11 +5,15 @@
|
|||||||
#
|
#
|
||||||
######################################################################
|
######################################################################
|
||||||
|
|
||||||
|
DEPENDENCIES_HOST_PREREQ:=
|
||||||
ifeq ($(BR2_STRIP_sstrip),y)
|
ifeq ($(BR2_STRIP_sstrip),y)
|
||||||
# XXX: this is a little bit ugly, yep.
|
DEPENDENCIES_HOST_PREREQ+=sstrip_host
|
||||||
MAYBE_SSTRIP_HOST:=sstrip_host
|
|
||||||
endif
|
endif
|
||||||
dependencies: host-sed host-lzma $(MAYBE_SSTRIP_HOST)
|
ifneq ($(findstring y,$(BR2_KERNEL_HEADERS_LZMA)),)
|
||||||
|
DEPENDENCIES_HOST_PREREQ+=host-lzma
|
||||||
|
endif
|
||||||
|
|
||||||
|
dependencies: host-sed $(DEPENDENCIES_HOST_PREREQ)
|
||||||
@HOSTCC="$(firstword $(HOSTCC))" MAKE="$(MAKE)" \
|
@HOSTCC="$(firstword $(HOSTCC))" MAKE="$(MAKE)" \
|
||||||
HOST_SED_DIR="$(HOST_SED_DIR)" \
|
HOST_SED_DIR="$(HOST_SED_DIR)" \
|
||||||
$(TOPDIR)/toolchain/dependencies/dependencies.sh
|
$(TOPDIR)/toolchain/dependencies/dependencies.sh
|
||||||
|
@ -74,19 +74,6 @@ config BR2_KERNEL_HEADERS_LZMA
|
|||||||
initramfs filesystems. This requires the lzma
|
initramfs filesystems. This requires the lzma
|
||||||
program in your development environment.
|
program in your development environment.
|
||||||
|
|
||||||
config BR2_KERNEL_HEADERS_LZMA_INSTALL
|
|
||||||
bool "Install lzma in /usr/local/bin (Requires system password) for sudo"
|
|
||||||
depends on BR2_KERNEL_HEADERS_2_6_21 || BR2_KERNEL_HEADERS_2_6_22
|
|
||||||
depends on BR2_KERNEL_HEADERS_LZMA
|
|
||||||
default n
|
|
||||||
help
|
|
||||||
Install the lzma package in the /usr/local/bin directory
|
|
||||||
so it is available for future builds. This requires sudo.
|
|
||||||
If you do not know the system password you should not set
|
|
||||||
this option. If you do not have lzma installed the only way
|
|
||||||
to complete the linux build, ifl you apply the lzma patches
|
|
||||||
is to have '$(STAGING_DIR)/usr/bin' in your path.
|
|
||||||
|
|
||||||
config BR2_KERNEL_HEADERS_PATCH_DIR
|
config BR2_KERNEL_HEADERS_PATCH_DIR
|
||||||
bool "Add additional headers from $(KERNEL_HEADERS_PATCH_DIR)"
|
bool "Add additional headers from $(KERNEL_HEADERS_PATCH_DIR)"
|
||||||
default n
|
default n
|
||||||
|
Loading…
x
Reference in New Issue
Block a user