|
@@ -36,6 +36,8 @@ ROOTFS_CPIO_DEPENDENCIES += host-cpio
|
|
ROOTFS_CPIO_OPTS += --reproducible
|
|
ROOTFS_CPIO_OPTS += --reproducible
|
|
endif
|
|
endif
|
|
|
|
|
|
|
|
+ifeq ($(BR2_TARGET_ROOTFS_CPIO_FULL),y)
|
|
|
|
+
|
|
define ROOTFS_CPIO_CMD
|
|
define ROOTFS_CPIO_CMD
|
|
cd $(TARGET_DIR) && \
|
|
cd $(TARGET_DIR) && \
|
|
find . \
|
|
find . \
|
|
@@ -44,6 +46,37 @@ define ROOTFS_CPIO_CMD
|
|
> $@
|
|
> $@
|
|
endef
|
|
endef
|
|
|
|
|
|
|
|
+else ifeq ($(BR2_TARGET_ROOTFS_CPIO_DRACUT),y)
|
|
|
|
+
|
|
|
|
+ROOTFS_CPIO_DEPENDENCIES += host-dracut
|
|
|
|
+
|
|
|
|
+ROOTFS_CPIO_DRACUT_CONF_FILE = $(call qstrip,$(BR2_TARGET_ROOTFS_CPIO_DRACUT_CONF_FILE))
|
|
|
|
+ifeq ($(BR_BUILDING):$(ROOTFS_CPIO_DRACUT_CONF_FILE),y:)
|
|
|
|
+$(error No dracut config file name specified, check your BR2_TARGET_ROOTFS_CPIO_DRACUT_CONF_FILE setting)
|
|
|
|
+endif
|
|
|
|
+
|
|
|
|
+ifeq ($(BR2_LINUX_KERNEL),y)
|
|
|
|
+ROOTFS_CPIO_DEPENDENCIES += linux
|
|
|
|
+ROOTFS_CPIO_OPTS += --kver $(LINUX_VERSION_PROBED)
|
|
|
|
+else
|
|
|
|
+ROOTFS_CPIO_OPTS += --no-kernel
|
|
|
|
+endif
|
|
|
|
+
|
|
|
|
+define ROOTFS_CPIO_CMD
|
|
|
|
+ mkdir -p $(ROOTFS_CPIO_DIR)/tmp
|
|
|
|
+ $(HOST_DIR)/bin/dracut \
|
|
|
|
+ $(ROOTFS_CPIO_OPTS) \
|
|
|
|
+ -c $(ROOTFS_CPIO_DRACUT_CONF_FILE) \
|
|
|
|
+ --sysroot $(TARGET_DIR) \
|
|
|
|
+ --tmpdir $(ROOTFS_CPIO_DIR)/tmp \
|
|
|
|
+ -M \
|
|
|
|
+ --force \
|
|
|
|
+ --no-compress \
|
|
|
|
+ $@
|
|
|
|
+endef
|
|
|
|
+
|
|
|
|
+endif #BR2_TARGET_ROOTFS_CPIO_DRACUT
|
|
|
|
+
|
|
ifeq ($(BR2_TARGET_ROOTFS_CPIO_UIMAGE),y)
|
|
ifeq ($(BR2_TARGET_ROOTFS_CPIO_UIMAGE),y)
|
|
ROOTFS_CPIO_DEPENDENCIES += host-uboot-tools
|
|
ROOTFS_CPIO_DEPENDENCIES += host-uboot-tools
|
|
define ROOTFS_CPIO_UBOOT_MKIMAGE
|
|
define ROOTFS_CPIO_UBOOT_MKIMAGE
|