diff options
author | Thomas Petazzoni <thomas.petazzoni@free-electrons.com> | 2010-03-24 22:43:12 +0100 |
---|---|---|
committer | Thomas Petazzoni <thomas.petazzoni@free-electrons.com> | 2010-04-19 22:46:37 +0200 |
commit | 5faae4869027d86cba895bf88b5b956c62310d30 (patch) | |
tree | 24ef9de24d6dc32f2ad58d28ad1a79d60895113f /package/makedevs/makedevs.mk | |
parent | 7b3a6f0aab19c147ad28f74e3b410c4a8bb2f38f (diff) | |
download | buildroot-novena-5faae4869027d86cba895bf88b5b956c62310d30.tar.gz buildroot-novena-5faae4869027d86cba895bf88b5b956c62310d30.zip |
makedevs: move to package/
Since target/ doesn't contain any .mk file in subdirectories, also
remove the include in target/Makefile.in.
Diffstat (limited to 'package/makedevs/makedevs.mk')
-rw-r--r-- | package/makedevs/makedevs.mk | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/package/makedevs/makedevs.mk b/package/makedevs/makedevs.mk new file mode 100644 index 000000000..fe426cafe --- /dev/null +++ b/package/makedevs/makedevs.mk @@ -0,0 +1,30 @@ +############################################################# +# +# 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) + |