2012-05-01 16:46:53 +02:00
|
|
|
# Makefile for ramdisk image
|
|
|
|
|
|
|
|
.include <bsd.own.mk>
|
|
|
|
|
|
|
|
BINFILES = dev2name mount sh service \
|
|
|
|
sysenv
|
|
|
|
|
2012-05-02 13:56:43 +02:00
|
|
|
SBINFILES = ahci at_wini ext2 floppy mfs procfs \
|
2012-05-01 16:46:53 +02:00
|
|
|
fsck.mfs
|
|
|
|
|
|
|
|
ETCFILES = system.conf mtab passwd pwd.db spwd.db master.passwd \
|
|
|
|
rs.single
|
|
|
|
|
2012-05-02 14:01:12 +02:00
|
|
|
USRBINFILES = loadramdisk cdprobe
|
2012-05-01 16:46:53 +02:00
|
|
|
USRSBINFILES = acpi pci
|
|
|
|
IMAGE_DIRS= bin sbin etc usr/bin usr/sbin
|
|
|
|
|
|
|
|
install:
|
|
|
|
all:
|
|
|
|
|
|
|
|
# as we are taking the binaries directly out of the destree
|
|
|
|
# we have to make sure they are already installed
|
|
|
|
# (that's a little bit to coarse grain though...)
|
|
|
|
install_files:
|
|
|
|
${MAKE} -C ${MINIXSRCDIR}/commands install
|
|
|
|
${MAKE} -C ${MINIXSRCDIR}/usr.bin install
|
|
|
|
${MAKE} -C ${MINIXSRCDIR}/usr.sbin install
|
|
|
|
${MAKE} -C ${MINIXSRCDIR}/usr.bin install
|
|
|
|
${MAKE} -C ${MINIXSRCDIR}/sbin install
|
|
|
|
${MAKE} -C ${MINIXSRCDIR}/bin install
|
|
|
|
${MAKE} -C ${MINIXSRCDIR}/servers install
|
|
|
|
${MAKE} -C ${MINIXSRCDIR}/drivers/acpi install
|
|
|
|
${MAKE} -C ${MINIXSRCDIR}/drivers/ahci install
|
|
|
|
${MAKE} -C ${MINIXSRCDIR}/drivers/at_wini install
|
|
|
|
${MAKE} -C ${MINIXSRCDIR}/drivers/floppy install
|
|
|
|
${MAKE} -C ${MINIXSRCDIR}/drivers/pci install
|
|
|
|
|
|
|
|
|
|
|
|
image.d: install_files
|
|
|
|
@echo -n "preparing image... "
|
|
|
|
rm -rf image.d
|
2012-05-07 16:28:01 +02:00
|
|
|
${INSTALL_DIR} image.d
|
|
|
|
@for f in $(IMAGE_DIRS); do ${INSTALL_DIR} image.d/$$f; done
|
2012-05-01 16:46:53 +02:00
|
|
|
@for f in $(BINFILES); do cp $(DESTDIR)/bin/$$f image.d/bin; done
|
|
|
|
@for f in $(SBINFILES); do cp $(DESTDIR)/sbin/$$f image.d/sbin; done
|
|
|
|
@for f in $(ETCFILES); do cp $(DESTDIR)/etc/$$f image.d/etc; done
|
|
|
|
@for f in $(USRBINFILES); do cp $(DESTDIR)/usr/bin/$$f image.d/usr/bin; done
|
|
|
|
@for f in $(USRSBINFILES); do cp $(DESTDIR)/usr/sbin/$$f image.d/usr/sbin; done
|
2012-05-01 17:01:30 +02:00
|
|
|
@cp rc image.d/etc;
|
2012-05-01 16:46:53 +02:00
|
|
|
if [ ! -z ${EXT2_EXTRA_TREE} ] ; \
|
|
|
|
then \
|
|
|
|
echo "Copying additional files";\
|
|
|
|
cp -a ${EXT2_EXTRA_TREE}/* image.d/; \
|
|
|
|
fi
|
|
|
|
@echo "done"
|
|
|
|
|
|
|
|
image:: image.d
|
|
|
|
@echo -n "generating image... "
|
|
|
|
genext2fs -q -N 1000 -D device_table.txt -b 21000 -U -d image.d $@
|
|
|
|
rm -rf image.d
|
|
|
|
@echo "done."
|
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -rf image.d image
|
|
|
|
.PHONY: image
|
|
|
|
|
|
|
|
.include <minix.service.mk>
|