diff options
author | Peter Korsgaard <jacmet@sunsite.dk> | 2010-04-19 23:28:26 +0200 |
---|---|---|
committer | Peter Korsgaard <jacmet@sunsite.dk> | 2010-04-19 23:28:26 +0200 |
commit | a726691a00aefc21e0052e6d27ad45f5ec06f79b (patch) | |
tree | 0d9827ddad5856c6d81c4f92265ebb63b6734200 | |
parent | d496bc1f281180c57c32a485385236620ac63a6e (diff) | |
parent | 81cd9d45ffa5cd2e8622ca2d11f4e62580bd2cbb (diff) | |
download | buildroot-novena-a726691a00aefc21e0052e6d27ad45f5ec06f79b.tar.gz buildroot-novena-a726691a00aefc21e0052e6d27ad45f5ec06f79b.zip |
Merge branch 'makedevs-cleanup' of git://git.busybox.net/~tpetazzoni/git/buildroot
-rw-r--r-- | fs/common.mk | 2 | ||||
-rw-r--r-- | package/Config.in | 1 | ||||
-rw-r--r-- | package/makedevs/Config.in | 5 | ||||
-rw-r--r-- | package/makedevs/makedevs.c (renamed from target/makedevs/makedevs.c) | 0 | ||||
-rw-r--r-- | package/makedevs/makedevs.mk | 35 | ||||
-rw-r--r-- | target/makedevs/makedevs.mk | 30 |
6 files changed, 42 insertions, 31 deletions
diff --git a/fs/common.mk b/fs/common.mk index cc94eb4ef..a3248c165 100644 --- a/fs/common.mk +++ b/fs/common.mk @@ -32,7 +32,7 @@ ROOTFS_DEVICE_TABLE = $(call qstrip,$(BR2_ROOTFS_DEVICE_TABLE)) define ROOTFS_TARGET_INTERNAL -$(BINARIES_DIR)/rootfs.$(1): $(ROOTFS_$(2)_DEPENDENCIES) host-fakeroot makedevs $(if $(BR2_TARGET_ROOTFS_$(2)_LZMA),host-lzma) +$(BINARIES_DIR)/rootfs.$(1): $(ROOTFS_$(2)_DEPENDENCIES) host-fakeroot host-makedevs $(if $(BR2_TARGET_ROOTFS_$(2)_LZMA),host-lzma) @$(call MESSAGE,"Generating root filesystem image rootfs.$(1)") $(foreach hook,$(ROOTFS_$(2)_PRE_GEN_HOOKS),$(call $(hook))$(sep)) rm -f $(FAKEROOT_SCRIPT) diff --git a/package/Config.in b/package/Config.in index 610490342..a4ef36261 100644 --- a/package/Config.in +++ b/package/Config.in @@ -175,6 +175,7 @@ source "package/input-tools/Config.in" source "package/iostat/Config.in" source "package/lm-sensors/Config.in" source "package/lvm2/Config.in" +source "package/makedevs/Config.in" source "package/mdadm/Config.in" source "package/memtester/Config.in" source "package/mtd/Config.in" diff --git a/package/makedevs/Config.in b/package/makedevs/Config.in new file mode 100644 index 000000000..4f8c38d0a --- /dev/null +++ b/package/makedevs/Config.in @@ -0,0 +1,5 @@ +config BR2_PACKAGE_MAKEDEVS + bool "makedevs" + help + The makedevs utility allows to create a set of device files + according to a configuration file.
\ No newline at end of file diff --git a/target/makedevs/makedevs.c b/package/makedevs/makedevs.c index 5ca45e9ae..5ca45e9ae 100644 --- a/target/makedevs/makedevs.c +++ b/package/makedevs/makedevs.c diff --git a/package/makedevs/makedevs.mk b/package/makedevs/makedevs.mk new file mode 100644 index 000000000..a3bb5cb54 --- /dev/null +++ b/package/makedevs/makedevs.mk @@ -0,0 +1,35 @@ +############################################################# +# +# makedevs +# +############################################################# + +MAKEDEVS_DIR=$(BUILD_DIR)/makedevs + +$(MAKEDEVS_DIR)/makedevs.c: + rm -rf $(MAKEDEVS_DIR) + mkdir $(MAKEDEVS_DIR) + cp package/makedevs/makedevs.c $(MAKEDEVS_DIR) + +$(MAKEDEVS_DIR)/makedevs: $(MAKEDEVS_DIR)/makedevs.c + $(CC) -Wall -Werror -O2 $(MAKEDEVS_DIR)/makedevs.c -o $@ + +$(TARGET_DIR)/usr/bin/makedevs: $(MAKEDEVS_DIR)/makedevs + $(INSTALL) -m 755 $^ $@ + +makedevs: $(TARGET_DIR)/usr/bin/makedevs + +HOST_MAKEDEVS_DIR=$(BUILD_DIR)/host-makedevs + +$(HOST_MAKEDEVS_DIR)/makedevs.c: + rm -rf $(HOST_MAKEDEVS_DIR) + mkdir $(HOST_MAKEDEVS_DIR) + cp package/makedevs/makedevs.c $(HOST_MAKEDEVS_DIR) + +$(HOST_MAKEDEVS_DIR)/makedevs: $(HOST_MAKEDEVS_DIR)/makedevs.c + $(CC) -Wall -Werror -O2 $(HOST_MAKEDEVS_DIR)/makedevs.c -o $@ + +$(HOST_DIR)/usr/bin/makedevs: $(HOST_MAKEDEVS_DIR)/makedevs + $(INSTALL) -m 755 $^ $@ + +host-makedevs: $(HOST_DIR)/usr/bin/makedevs
\ No newline at end of file diff --git a/target/makedevs/makedevs.mk b/target/makedevs/makedevs.mk deleted file mode 100644 index fe426cafe..000000000 --- a/target/makedevs/makedevs.mk +++ /dev/null @@ -1,30 +0,0 @@ -############################################################# -# -# build makedevs to run on the build system, in order to create -# device nodes and whatnot for the target device, in conjunction -# with fakeroot. -# -############################################################# -MAKEDEVS_DIR=$(BUILD_DIR)/makedevs-host - -$(MAKEDEVS_DIR)/makedevs.c: target/makedevs/makedevs.c - rm -rf $(MAKEDEVS_DIR) - mkdir $(MAKEDEVS_DIR) - cp target/makedevs/makedevs.c $(MAKEDEVS_DIR) - -$(MAKEDEVS_DIR)/makedevs: $(MAKEDEVS_DIR)/makedevs.c - $(HOSTCC) -Wall -Werror -O2 $(MAKEDEVS_DIR)/makedevs.c -o $@ - -$(HOST_DIR)/usr/bin/makedevs: $(MAKEDEVS_DIR)/makedevs - $(INSTALL) -m 755 $^ $@ - -makedevs: $(HOST_DIR)/usr/bin/makedevs - -makedevs-source: - -makedevs-clean: - rm -rf $(MAKEDEVS_DIR)/makedevs - -makedevs-dirclean: - rm -rf $(MAKEDEVS_DIR) - |