Commit b605699f authored by Thomas Petazzoni's avatar Thomas Petazzoni
Browse files

target/: remove the COPYTO mess



There's no need to provide options to copy the filesystem image after
the build. Just use 'cp' outside of Buildroot.

Signed-off-by: default avatarThomas Petazzoni <thomas.petazzoni@free-electrons.com>
parent 77ab5443
Loading
Loading
Loading
Loading
+0 −9
Original line number Diff line number Diff line
@@ -38,12 +38,3 @@ config BR2_TARGET_ROOTFS_CPIO_LZMA

endchoice
config BR2_TARGET_ROOTFS_CPIO_COPYTO
	string "also copy the image to..."
	depends on BR2_TARGET_ROOTFS_CPIO
	default ""
	help
	  Copies the resulting image to a secondary location
	  like a tftp server's root directory.
	
	  Example: $(IMAGE)-$(DATE).cpio$(CPIO_ROOTFS_COMPRESSOR_EXT)
+0 −10
Original line number Diff line number Diff line
@@ -29,8 +29,6 @@ else
CPIO_TARGET := $(CPIO_BASE)
endif

ROOTFS_CPIO_COPYTO:=$(call qstrip,$(BR2_TARGET_ROOTFS_CPIO_COPYTO))

cpioroot-init:
	rm -f $(TARGET_DIR)/init
	ln -s sbin/init $(TARGET_DIR)/init
@@ -52,18 +50,10 @@ endif
	chmod a+x $(BUILD_DIR)/_fakeroot.$(notdir $(CPIO_BASE))
	$(HOST_DIR)/usr/bin/fakeroot -- $(BUILD_DIR)/_fakeroot.$(notdir $(CPIO_BASE))
	-@rm -f $(BUILD_DIR)/_fakeroot.$(notdir $(CPIO_BASE))
ifeq ($(CPIO_ROOTFS_COMPRESSOR),)
ifneq ($(ROOTFS_CPIO_COPYTO),)
	$(Q)cp -f $(CPIO_BASE) $(ROOTFS_CPIO_COPYTO)
endif
endif

ifneq ($(CPIO_ROOTFS_COMPRESSOR),)
$(CPIO_BASE).$(CPIO_ROOTFS_COMPRESSOR_EXT): $(CPIO_ROOTFS_COMPRESSOR_PREREQ) $(CPIO_BASE)
	$(CPIO_ROOTFS_COMPRESSOR) $(CPIO_BASE) > $(CPIO_TARGET)
ifneq ($(ROOTFS_CPIO_COPYTO),)
	$(Q)cp -f $(CPIO_BASE).$(CPIO_ROOTFS_COMPRESSOR_EXT) $(ROOTFS_CPIO_COPYTO).$(CPIO_ROOTFS_COMPRESSOR_EXT)
endif
endif

#############################################################
+0 −8
Original line number Diff line number Diff line
@@ -64,11 +64,3 @@ config BR2_TARGET_ROOTFS_EXT2_LZMA

endchoice
config BR2_TARGET_ROOTFS_EXT2_COPYTO
	string "also copy the image to..."
	depends on BR2_TARGET_ROOTFS_EXT2
	default ""
	help
	  Copies the resulting image to a secondary location
	  like a tftp server's root directory.
+0 −6
Original line number Diff line number Diff line
@@ -82,13 +82,7 @@ $(EXT2_BASE).$(EXT2_ROOTFS_COMPRESSOR_EXT): $(EXT2_ROOTFS_COMPRESSOR_PREREQ) $(E
	$(EXT2_ROOTFS_COMPRESSOR) $(EXT2_BASE) > $(EXT2_TARGET)
endif

EXT2_COPYTO := $(call qstrip,$(BR2_TARGET_ROOTFS_EXT2_COPYTO))

ext2root: $(EXT2_TARGET)
	@ls -l $(EXT2_TARGET)
ifneq ($(EXT2_COPYTO),)
	@cp -f $(EXT2_TARGET) $(EXT2_COPYTO)
endif

#############################################################
#
+0 −6
Original line number Diff line number Diff line
@@ -118,10 +118,4 @@ config BR2_TARGET_ROOTFS_JFFS2_OUTPUT
	string "Output File"
	default "$(IMAGE).jffs2"

config BR2_TARGET_ROOTFS_JFFS2_COPYTO
	string "also copy the image to..."
	default ""
	help
	  Copies the resulting image to a secondary location.

endif
Loading