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.
|
|
|
|
#
|
|
|
|
#############################################################
|
|
|
|
MAKEDEVS_DIR=$(BUILD_DIR)/makedevs
|
|
|
|
|
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
|
2006-10-06 14:59:33 +02:00
|
|
|
$(HOSTCC) -Wall -Werror -O2 $(MAKEDEVS_DIR)/makedevs.c -o $(MAKEDEVS_DIR)/makedevs
|
2005-06-09 13:11:10 +02:00
|
|
|
touch -c $(MAKEDEVS_DIR)/makedevs
|
|
|
|
|
2005-06-24 07:02:00 +02:00
|
|
|
$(STAGING_DIR)/bin/makedevs: $(MAKEDEVS_DIR)/makedevs
|
|
|
|
$(INSTALL) -m 755 $(MAKEDEVS_DIR)/makedevs $(STAGING_DIR)/bin/makedevs
|
|
|
|
touch -c $(STAGING_DIR)/bin/makedevs
|
|
|
|
|
|
|
|
makedevs: $(STAGING_DIR)/bin/makedevs
|
2005-06-09 13:11:10 +02:00
|
|
|
|
|
|
|
makedevs-source:
|
|
|
|
|
|
|
|
makedevs-clean:
|
|
|
|
-rm -rf $(MAKEDEVS_DIR)
|
|
|
|
|
|
|
|
makedevs-dirclean:
|
|
|
|
rm -rf $(MAKEDEVS_DIR)
|
|
|
|
|