mirror of
https://github.com/motioneye-project/motioneyeos.git
synced 2025-07-29 06:06:32 +00:00
fs: use a per-rootfs fakeroot script
... and locate that script in a per-rootfs directory. Just like for ROOTFS, this variable will leak down the dependency tree to target-finalize and packages - But it doesn't matter as it isn't used outside fs/. [Peter: extend commit message] Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr> Cc: Thomas Petazzoni <thomas.petazzoni@bootlin.com> Cc: Arnout Vandecappelle <arnout@mind.be> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
This commit is contained in:
parent
0c7adf75d2
commit
4815240830
@ -28,7 +28,6 @@
|
|||||||
# macro will automatically generate a compressed filesystem image.
|
# macro will automatically generate a compressed filesystem image.
|
||||||
|
|
||||||
FS_DIR = $(BUILD_DIR)/buildroot-fs
|
FS_DIR = $(BUILD_DIR)/buildroot-fs
|
||||||
FAKEROOT_SCRIPT = $(FS_DIR)/fakeroot.fs
|
|
||||||
FULL_DEVICE_TABLE = $(FS_DIR)/device_table.txt
|
FULL_DEVICE_TABLE = $(FS_DIR)/device_table.txt
|
||||||
ROOTFS_DEVICE_TABLES = $(call qstrip,$(BR2_ROOTFS_DEVICE_TABLE) \
|
ROOTFS_DEVICE_TABLES = $(call qstrip,$(BR2_ROOTFS_DEVICE_TABLE) \
|
||||||
$(BR2_ROOTFS_STATIC_DEVICE_TABLE))
|
$(BR2_ROOTFS_STATIC_DEVICE_TABLE))
|
||||||
@ -75,10 +74,11 @@ ROOTFS_$(2)_COMPRESS_CMD = xz -9 -C crc32 -c
|
|||||||
endif
|
endif
|
||||||
|
|
||||||
$$(BINARIES_DIR)/rootfs.$(1): ROOTFS=$(2)
|
$$(BINARIES_DIR)/rootfs.$(1): ROOTFS=$(2)
|
||||||
|
$$(BINARIES_DIR)/rootfs.$(1): FAKEROOT_SCRIPT=$$(ROOTFS_$(2)_DIR)/fakeroot
|
||||||
$$(BINARIES_DIR)/rootfs.$(1): target-finalize $$(ROOTFS_$(2)_DEPENDENCIES)
|
$$(BINARIES_DIR)/rootfs.$(1): target-finalize $$(ROOTFS_$(2)_DEPENDENCIES)
|
||||||
@$$(call MESSAGE,"Generating root filesystem image rootfs.$(1)")
|
@$$(call MESSAGE,"Generating root filesystem image rootfs.$(1)")
|
||||||
rm -rf $(FS_DIR)
|
rm -rf $(FS_DIR) $$(ROOTFS_$(2)_DIR)
|
||||||
mkdir -p $(FS_DIR)
|
mkdir -p $(FS_DIR) $$(ROOTFS_$(2)_DIR)
|
||||||
echo '#!/bin/sh' > $$(FAKEROOT_SCRIPT)
|
echo '#!/bin/sh' > $$(FAKEROOT_SCRIPT)
|
||||||
echo "set -e" >> $$(FAKEROOT_SCRIPT)
|
echo "set -e" >> $$(FAKEROOT_SCRIPT)
|
||||||
$$(foreach hook,$$(ROOTFS_$(2)_PRE_GEN_HOOKS),\
|
$$(foreach hook,$$(ROOTFS_$(2)_PRE_GEN_HOOKS),\
|
||||||
|
Loading…
x
Reference in New Issue
Block a user