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
|
|
|
|
|
|
|
|
USRBINFILES = newroot loadramdisk cdprobe
|
|
|
|
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
|
|
|
|
@mkdir image.d
|
|
|
|
@for f in $(IMAGE_DIRS); do mkdir -p image.d/$$f; done
|
|
|
|
@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>
|