kumquat-buildroot/target/makedevs/makedevs.mk
Eric Andersen eb0ee4509d Finish implementing fakeroot handling so mksquashfs properly
inherits device table settings and device nodes, exactly as
per mkfs* applications that support device tables natively.
2005-06-24 07:26:33 +00:00

33 lines
935 B
Makefile

#############################################################
#
# 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
$(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
gcc -Wall -Werror -O2 $(MAKEDEVS_DIR)/makedevs.c -o $(MAKEDEVS_DIR)/makedevs
touch -c $(MAKEDEVS_DIR)/makedevs
$(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
makedevs-source:
makedevs-clean:
-rm -rf $(MAKEDEVS_DIR)
makedevs-dirclean:
rm -rf $(MAKEDEVS_DIR)