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
|
|
|
|
gcc -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
|
|
|
|
|
2005-08-08 09:54:28 +02:00
|
|
|
$(STAGING_DIR)/fakeroot.env:
|
|
|
|
cat $(STAGING_DIR)/.fakeroot.* > $(STAGING_DIR)/fakeroot.env
|
|
|
|
touch -c $(STAGING_DIR)/fakeroot.env
|
|
|
|
|
2005-06-24 07:02:00 +02:00
|
|
|
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)
|
|
|
|
|