diff options
author | Thomas Petazzoni <thomas.petazzoni@free-electrons.com> | 2010-03-24 23:12:29 +0100 |
---|---|---|
committer | Thomas Petazzoni <thomas.petazzoni@free-electrons.com> | 2010-04-19 22:46:39 +0200 |
commit | 81cd9d45ffa5cd2e8622ca2d11f4e62580bd2cbb (patch) | |
tree | 71a8c5d5e20249b45e6ea7874694086d847dac9f /package/makedevs/makedevs.mk | |
parent | 5faae4869027d86cba895bf88b5b956c62310d30 (diff) |
makedevs: convert to a more normal way of building packages
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Diffstat (limited to 'package/makedevs/makedevs.mk')
-rw-r--r-- | package/makedevs/makedevs.mk | 33 |
1 files changed, 19 insertions, 14 deletions
diff --git a/package/makedevs/makedevs.mk b/package/makedevs/makedevs.mk index fe426cafe..a3bb5cb54 100644 --- a/package/makedevs/makedevs.mk +++ b/package/makedevs/makedevs.mk @@ -1,30 +1,35 @@ ############################################################# # -# 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 # ############################################################# -MAKEDEVS_DIR=$(BUILD_DIR)/makedevs-host -$(MAKEDEVS_DIR)/makedevs.c: target/makedevs/makedevs.c +MAKEDEVS_DIR=$(BUILD_DIR)/makedevs + +$(MAKEDEVS_DIR)/makedevs.c: rm -rf $(MAKEDEVS_DIR) mkdir $(MAKEDEVS_DIR) - cp target/makedevs/makedevs.c $(MAKEDEVS_DIR) + cp package/makedevs/makedevs.c $(MAKEDEVS_DIR) $(MAKEDEVS_DIR)/makedevs: $(MAKEDEVS_DIR)/makedevs.c - $(HOSTCC) -Wall -Werror -O2 $(MAKEDEVS_DIR)/makedevs.c -o $@ + $(CC) -Wall -Werror -O2 $(MAKEDEVS_DIR)/makedevs.c -o $@ -$(HOST_DIR)/usr/bin/makedevs: $(MAKEDEVS_DIR)/makedevs +$(TARGET_DIR)/usr/bin/makedevs: $(MAKEDEVS_DIR)/makedevs $(INSTALL) -m 755 $^ $@ -makedevs: $(HOST_DIR)/usr/bin/makedevs +makedevs: $(TARGET_DIR)/usr/bin/makedevs -makedevs-source: +HOST_MAKEDEVS_DIR=$(BUILD_DIR)/host-makedevs -makedevs-clean: - rm -rf $(MAKEDEVS_DIR)/makedevs +$(HOST_MAKEDEVS_DIR)/makedevs.c: + rm -rf $(HOST_MAKEDEVS_DIR) + mkdir $(HOST_MAKEDEVS_DIR) + cp package/makedevs/makedevs.c $(HOST_MAKEDEVS_DIR) -makedevs-dirclean: - rm -rf $(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 |