mirror of
https://github.com/motioneye-project/motioneyeos.git
synced 2025-07-26 20:56:33 +00:00
fs: add option to define path to custom rootfs skeleton
Signed-off-by: Dmytro Milinevskyy <milinevskyy@gmail.com> Acked-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
This commit is contained in:
parent
d9119c0bc5
commit
2b3a43f4e3
4
Makefile
4
Makefile
@ -367,6 +367,10 @@ $(STAGING_DIR):
|
|||||||
@mkdir -p $(STAGING_DIR)/usr/include
|
@mkdir -p $(STAGING_DIR)/usr/include
|
||||||
@mkdir -p $(STAGING_DIR)/usr/bin
|
@mkdir -p $(STAGING_DIR)/usr/bin
|
||||||
|
|
||||||
|
ifeq ($(BR2_ROOTFS_SKELETON_CUSTOM),y)
|
||||||
|
TARGET_SKELETON=$(BR2_ROOTFS_SKELETON_CUSTOM_PATH)
|
||||||
|
endif
|
||||||
|
|
||||||
$(BUILD_DIR)/.root:
|
$(BUILD_DIR)/.root:
|
||||||
mkdir -p $(TARGET_DIR)
|
mkdir -p $(TARGET_DIR)
|
||||||
if ! [ -d "$(TARGET_DIR)/bin" ]; then \
|
if ! [ -d "$(TARGET_DIR)/bin" ]; then \
|
||||||
|
23
fs/Config.in
23
fs/Config.in
@ -23,6 +23,29 @@ config BR2_ROOTFS_DEVICE_TABLE
|
|||||||
to the makedevs utility to create all the special device
|
to the makedevs utility to create all the special device
|
||||||
files in the target filesystem.
|
files in the target filesystem.
|
||||||
|
|
||||||
|
choice
|
||||||
|
prompt "Root FS skeleton"
|
||||||
|
|
||||||
|
config BR2_ROOTFS_SKELETON_DEFAULT
|
||||||
|
bool "default target skeleton"
|
||||||
|
help
|
||||||
|
Use default target skeleton
|
||||||
|
|
||||||
|
config BR2_ROOTFS_SKELETON_CUSTOM
|
||||||
|
bool "custom target skeleton"
|
||||||
|
help
|
||||||
|
Use custom target skeleton.
|
||||||
|
|
||||||
|
endchoice
|
||||||
|
|
||||||
|
if BR2_ROOTFS_SKELETON_CUSTOM
|
||||||
|
config BR2_ROOTFS_SKELETON_CUSTOM_PATH
|
||||||
|
string "custom target skeleton path"
|
||||||
|
default "fs/skeleton"
|
||||||
|
help
|
||||||
|
Path custom target skeleton.
|
||||||
|
endif
|
||||||
|
|
||||||
source "fs/cramfs/Config.in"
|
source "fs/cramfs/Config.in"
|
||||||
source "fs/cloop/Config.in"
|
source "fs/cloop/Config.in"
|
||||||
source "fs/ext2/Config.in"
|
source "fs/ext2/Config.in"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user