URL
https://opencores.org/ocsvn/eco32/eco32/trunk
Subversion Repositories eco32
[/] [eco32/] [tags/] [eco32-0.23/] [disk/] [tools/] [fs-NetBSD/] [Makefile.run] - Rev 233
Go to most recent revision | Compare with Previous | Blame | View Log
#
# Makefile for building a NetBSD disklabel and file system
#
BUILD = ../..
DISK = ../disk.img
all: proto-fs
$(BUILD)/bin/NetBSD-makefs -t ffs -B be -s 106496b \
-f 20000 -o version=1,bsize=8192,fsize=1024 \
fs.img ./root
dd if=fs.img of=$(DISK) bs=512 seek=81920 conv=notrunc
$(BUILD)/bin/NetBSD-wrboot ./bootblk $(DISK) 3
$(BUILD)/bin/NetBSD-dsklbl -wb $(DISK) 3
proto-fs:
mkdir -p ./root
cp ./loader ./root
cp $(BUILD)/../os-bin/NetBSD/* ./root
mkdir -p ./root/bin
mkdir -p ./root/dev
mkdir -p ./root/etc
mkdir -p ./root/tmp
mkdir -p ./root/usr
mkdir -p ./root/usr/data
cp $(BUILD)/data/* ./root/usr/data
clean:
rm -f *~ fs.img
rm -rf ./root
Go to most recent revision | Compare with Previous | Blame | View Log