2005-06-09 13:11:10 +02:00
|
|
|
#############################################################
|
|
|
|
#
|
|
|
|
# build makedevs to run on the build system, in order to create
|
|
|
|
# device nodes and whatnot for the target device, in conjunction
|
|
|
|
# with fakeroot.
|
|
|
|
#
|
|
|
|
#############################################################
|
2009-04-01 15:02:07 +02:00
|
|
|
MAKEDEVS_DIR=$(BUILD_DIR)/makedevs-host
|
2005-06-09 13:11:10 +02:00
|
|
|
|
2005-06-24 09:26:33 +02:00
|
|
|
$(MAKEDEVS_DIR)/makedevs.c: target/makedevs/makedevs.c
|
|
|
|
rm -rf $(MAKEDEVS_DIR)
|
2005-06-09 13:11:10 +02:00
|
|
|
mkdir $(MAKEDEVS_DIR)
|
|
|
|
cp target/makedevs/makedevs.c $(MAKEDEVS_DIR)
|
|
|
|
|
2005-06-24 09:26:33 +02:00
|
|
|
$(MAKEDEVS_DIR)/makedevs: $(MAKEDEVS_DIR)/makedevs.c
|
2009-04-01 15:02:07 +02:00
|
|
|
$(HOSTCC) -Wall -Werror -O2 $(MAKEDEVS_DIR)/makedevs.c -o $@
|
2005-06-09 13:11:10 +02:00
|
|
|
|
2009-04-01 15:02:07 +02:00
|
|
|
$(HOST_DIR)/usr/bin/makedevs: $(MAKEDEVS_DIR)/makedevs
|
|
|
|
$(INSTALL) -m 755 $^ $@
|
2005-06-24 07:02:00 +02:00
|
|
|
|
2009-04-01 15:02:07 +02:00
|
|
|
makedevs: $(HOST_DIR)/usr/bin/makedevs
|
2005-06-09 13:11:10 +02:00
|
|
|
|
|
|
|
makedevs-source:
|
|
|
|
|
|
|
|
makedevs-clean:
|
2009-04-01 15:02:07 +02:00
|
|
|
rm -rf $(MAKEDEVS_DIR)/makedevs
|
2005-06-09 13:11:10 +02:00
|
|
|
|
|
|
|
makedevs-dirclean:
|
|
|
|
rm -rf $(MAKEDEVS_DIR)
|
|
|
|
|