Преглед изворни кода

- make sure to download fakeroot if needed

Bernhard Reutner-Fischer пре 18 година
родитељ
комит
73be7f9ef4

+ 1 - 1
Makefile

@@ -119,7 +119,7 @@ $(TARGET_DIR):
 	-find $(TARGET_DIR) -type d -name CVS | xargs rm -rf
 	-find $(TARGET_DIR) -type d -name .svn | xargs rm -rf
 
-source: $(TARGETS_SOURCE)
+source: $(TARGETS_SOURCE) $(HOST_SOURCE)
 
 #############################################################
 #

+ 5 - 0
package/fakeroot/Config.in

@@ -5,3 +5,8 @@ config BR2_PACKAGE_FAKEROOT
 	  Run commands in an environment faking root privileges.
 
 	  http://joostje.op.het.net/fakeroot/
+
+# dummy for fakeroot-source
+config BR2_HOST_FAKEROUTE
+	bool
+	default n

+ 4 - 0
package/fakeroot/fakeroot.mk

@@ -122,3 +122,7 @@ fakeroot-dirclean:
 ifeq ($(strip $(BR2_PACKAGE_FAKEROOT)),y)
 TARGETS+=fakeroot
 endif
+
+ifeq ($(strip $(BR2_HOST_FAKEROUTE)),y)
+HOST_SOURCE+=fakeroot-source
+endif

+ 5 - 4
target/cpio/Config.in

@@ -1,6 +1,7 @@
 config BR2_TARGET_ROOTFS_CPIO
-       bool "cpio the root filesystem"
-       default n
-       help
-         Build a cpio archive of the root filesystem
+	bool "cpio the root filesystem"
+	default n
+	select BR2_HOST_FAKEROUTE
+	help
+	  Build a cpio archive of the root filesystem
 

+ 1 - 0
target/cramfs/Config.in

@@ -1,6 +1,7 @@
 config BR2_TARGET_ROOTFS_CRAMFS
 	bool "cramfs root filesystem"
 	default n
+	select BR2_HOST_FAKEROUTE
 	help
 	  Build a cramfs root filesystem
 

+ 1 - 0
target/ext2/Config.in

@@ -1,6 +1,7 @@
 config BR2_TARGET_ROOTFS_EXT2
 	bool "ext2 root filesystem"
 	default y
+	select BR2_HOST_FAKEROUTE
 	help
 	  Build an ext2 root filesystem
 

+ 1 - 0
target/iso9660/Config.in

@@ -4,6 +4,7 @@ config BR2_TARGET_ROOTFS_ISO9660
 	depends on BR2_i386
 	select BR2_TARGET_ROOTFS_EXT2
 	select BR2_TARGET_GRUB
+	select BR2_HOST_FAKEROUTE
 	help
 	  Build a bootable iso9660 image
 

+ 1 - 0
target/jffs2/Config.in

@@ -1,6 +1,7 @@
 config BR2_TARGET_ROOTFS_JFFS2
 	bool "jffs2 root filesystem"
 	default n
+	select BR2_HOST_FAKEROUTE
 	select BR2_PACKAGE_MTD
 	help
 	  Build a jffs2 root filesystem

+ 1 - 0
target/squashfs/Config.in

@@ -1,6 +1,7 @@
 config BR2_TARGET_ROOTFS_SQUASHFS
 	bool "squashfs root filesystem"
 	default n
+	select BR2_HOST_FAKEROUTE
 	help
 	  Build a squashfs root filesystem
 

+ 1 - 0
target/tar/Config.in

@@ -1,6 +1,7 @@
 config BR2_TARGET_ROOTFS_TAR
 	bool "tar the root filesystem"
 	default n
+	select BR2_HOST_FAKEROUTE
 	help
 	  Build a tar archive of the root filesystem