diff --git a/README b/README index c5fa70d85..f9f996d8f 100644 --- a/README +++ b/README @@ -12,26 +12,54 @@ ELKS source code root. For a Dev86 source at /usr/src/dev86 do this: user:/usr/src/elks$ ln -s /usr/src/dev86 dev86 -The general build procedure is as follows: +A script that attempts to automate the build process and make it easier +for ELKS newbies has been provided. Simply run: + +./build.sh + +If you want to clean everything up afterwards, run './build.sh clean' +and it will run 'make clean' in the build directories for you. + +The general build procedure for ELKS is as follows: * Build Dev86, usually with default options + * Make sure 'dev86' is beside 'elks' 'elkscmd' etc. + * 'cd elks' + * 'make menuconfig' and configure the kernel + * Run 'make' to build the kernel -* 'cd ../elkscmd' -* 'make' (builds the core command line utilities) + * 'cd ../elksnet' + * 'make' (builds the networking components) + * 'cd ../elkscmd' + +* 'make' (builds the core command line utilities) + * As root, run 'make [imagetype]' where image type is one of these: + - full3: 1.44MB 3.5" floppy image, all-inclusive + + - full1722: same as full3 but on a 1.722MB 3.5" "extended format" floppy + - full5: 1.2MB 5.25" floppy image, all-inclusive + - comb: 720K floppy image, ELKS kernel plus minimal root filesystem + - comb_net: Same as 'comb' but with 'elksnet' components included + - boot: 360K floppy image, ELKS kernel only + - root: 360K floppy image, minimal root filesystem only - - images.zip: make every image type and zip them all into "images.zip" + + - images: make all images but don't create an archive of them + - images.zip: make all images, pack into a Zip-compress archive + - images.tar.gz: make all images, pack into Gzip-compressed tar archive + - images.tar.xz: make all images, pack into XZ-compressed tar archive Questions? Problems? Patches? Join and email the Linux-8086 mailing list at linux-8086@vger.kernel.org or email the maintainer at jody@jodybruchon.com diff --git a/build.sh b/build.sh new file mode 100755 index 000000000..347b0bcae --- /dev/null +++ b/build.sh @@ -0,0 +1,110 @@ +#!/bin/sh + +# Quick and dirty build script for ELKS +# Probably buggy, but makes from-scratch builds easier + +pause () { + echo + echo -n "Press a key to continue... " + read -n 1 -s + echo +} + +clean_exit () { + E="$1" + test -z $1 && E=0 + if [ $E -eq 0 ] + then echo "Build terminated successfully." + else echo "Build script has terminated with error $E" + fi + exit $E +} + +# Disk images cannot be built unless we're UID 0 +if [ "$UID" != "0" ] + then echo "WARNING: Disk images can only be built logged in as 'root'" +fi + +# A copy of dev86 is REQUIRED to build! +if [ ! -e "./dev86" ] + then + echo "ERROR: You must copy or symlink 'dev86' to the root of the" + echo " ELKS source tree. If you don't have dev86, you can obtain" + echo " a copy at: https://github.com/lkundrak/dev86" + echo "Cannot build without dev86 in the source tree. Aborting." + exit 1 +fi + +# bcc is required (but has no --version switch, so test for stdio output) +if [ -z "$(bcc 2>&1)" ] + then + echo "ERROR: Cannot execute 'bcc'. You must build and install dev86 to" + echo " your system before attempting to build ELKS. Aborting." + exit 1 +fi + +# Working directory +WD="$(pwd)" + + +### Clean if asked +if [ "$1" = "clean" ] + then echo + echo "Cleaning up. Please wait." + sleep 1 + for X in elks elkscmd elksnet + do cd $X; make clean; cd "$WD" + done + clean_exit 0 +fi + +### Kernel build +echo +echo "Preparing to build the ELKS kernel. This will invoke 'make menuconfig'" +echo "for you to configure the system. The defaults should be OK for many" +echo "systems, but you may want to review them." +pause +cd elks || clean_exit 1 +make clean +make menuconfig || clean_exit 2 +test -e .config || clean_exit 3 +make defconfig || clean_exit 4 +make -j4 || clean_exit 4 +test -e arch/i86/boot/Image || clean_exit 4 +cd "$WD" + + +### dev86 verification +echo "Verifying dev86 is built." +sleep 1 +cd dev86 || clean_exit 5 +make || clean_exit 5 +cd "$WD" + + +### elksnet build +echo "Building 'elksnet'" +sleep 1 +cd elksnet || clean_exit 6 +make clean +make || clean_exit 6 +cd "$WD" + + +### elkscmd build +echo "Building 'elkscmd'" +sleep 1 +cd elkscmd || clean_exit 7 +make clean +make || clean_exit 7 + + +### Make image files +test $UID -ne 0 && echo "Skipping image file build (not root)." && clean_exit 0 +make images.zip || clean_exit 8 +make images.tar.gz || clean_exit 8 +make images.tar.xz || clean_exit 8 +cd "$WD" + +echo "Images and image file archives are under 'elkscmd'." +clean_exit 0 diff --git a/elks/Makefile b/elks/Makefile index 10869e3f5..dfa7f842b 100644 --- a/elks/Makefile +++ b/elks/Makefile @@ -72,16 +72,16 @@ endif ######################################################################### # Define commands. -Image: include/linuxmt/autoconf.h $(ARCHIVES) init/main.o +Image: defconfig include/linuxmt/autoconf.h $(ARCHIVES) init/main.o ${MAKE} -C $(ARCH_DIR) Image -nbImage: include/linuxmt/autoconf.h $(ARCHIVES) init/main.o +nbImage: defconfig include/linuxmt/autoconf.h $(ARCHIVES) init/main.o ${MAKE} -C $(ARCH_DIR) nbImage -nb_install: nbImage +nb_install: defconfig nbImage cp -f $(ARCH_DIR)/boot/nbImage $(TARGET_NB_IMAGE) -nbrd_install: nbImage +nbrd_install: defconfig nbImage cp -f $(ARCH_DIR)/boot/nbImage $(ARCH_DIR)/boot/nbImage.rd cat $(ARCH_DIR)/boot/nbRamdisk >> $(ARCH_DIR)/boot/nbImage.rd cp -f $(ARCH_DIR)/boot/nbImage.rd $(TARGET_NB_IMAGE) diff --git a/elks/Makefile-rules b/elks/Makefile-rules index 799cf224d..4ad6a0eb9 100644 --- a/elks/Makefile-rules +++ b/elks/Makefile-rules @@ -48,8 +48,8 @@ # State the current version of this system. VERSION = 0 # (0-255) -PATCHLEVEL = 1 # (0-255) -SUBLEVEL = 5 # (0-255) +PATCHLEVEL = 2 # (0-255) +SUBLEVEL = 0 # (0-255) #PRE = 1 # (0-255) If not a pre, comment this line. ######################################################################### diff --git a/elkscmd/Make.defs b/elkscmd/Make.defs index 8eb61509b..51ede3a13 100644 --- a/elkscmd/Make.defs +++ b/elkscmd/Make.defs @@ -129,6 +129,9 @@ CFLAGS=$(CFLBASE) $(LOCALFLAGS) -I$(INC_DIR) "-DELKS_VERSION=\"$(ELKS_VSN)\"" COMB_TARGET_FS=$(ELKSCMD_DIR)/comb COMB_TARGET_BLKS=720 +FULL1722_TARGET_FS=$(ELKSCMD_DIR)/full1722 +FULL1722_TARGET_BLKS=1722 + FULL3_TARGET_FS=$(ELKSCMD_DIR)/full3 FULL3_TARGET_BLKS=1440 @@ -138,14 +141,14 @@ FULL5_TARGET_BLKS=1200 ROOT_TARGET_FS=$(ELKSCMD_DIR)/root ROOT_TARGET_BLKS=360 -ROOT_NET_TARGET_FS=$(ELKSCMD_DIR)/comb_net -ROOT_NET_TARGET_BLKS=720 +COMB_NET_TARGET_FS=$(ELKSCMD_DIR)/comb_net +COMB_NET_TARGET_BLKS=720 SIBO_TARGET_FS=$(ELKSCMD_DIR)/sibo SIBO_TARGET_BLKS=128 MKFS=/sbin/mkfs.minix -MKFS_OPTS=-n14 +MKFS_OPTS=-n14 -1 -i360 MINIX_BOOT=$(DEV86_DIR)/bootblocks diff --git a/elkscmd/Makefile b/elkscmd/Makefile index 4b1640a1e..fc76ea9ee 100644 --- a/elkscmd/Makefile +++ b/elkscmd/Makefile @@ -35,6 +35,12 @@ FD_BSECT = $(MINIX_BOOT)/minix.bin KHELPER = $(MINIX_BOOT)/minix_elks.bin +############################################################################### +# +# Names of all possible image files. + +IMAGES = boot root comb comb_net full5 full3 full1722 + ############################################################################### # # Compile everything. @@ -42,13 +48,11 @@ KHELPER = $(MINIX_BOOT)/minix_elks.bin all: if [ ! -e $(ELKS_DIR)/include/linuxmt/config.h ]; \ then echo -e "\n*** ERROR: You must build the ELKS kernel first ***\n" >&2; exit 1; fi - @for i in $(DIRS); do make -C $$i all ; done + +@for i in $(DIRS); do make -C $$i all ; done clean: - -umount $(COMB_TARGET_FS) $(ROOT_TARGET_FS) $(ROOT_NET_TARGET_FS) \ - $(FULL3_TARGET_FS) $(FULL5_TARGET_FS) || true - -rm -f $(COMB_TARGET_FS) $(ROOT_TARGET_FS) $(ROOT_NET_TARGET_FS) \ - $(FULL3_TARGET_FS) $(FULL5_TARGET_FS) boot images.zip core + -umount $(IMAGES) || true + -rm -f $(IMAGES) core images.zip images.tar.* -rm -rf $(ROOTDIR) -rm -f *~ -@for i in $(DIRS) $(DONTUSE) $(DONTWORK); do make -C $$i clean ; done @@ -152,7 +156,9 @@ _build_nonbootable_target: _build_target _build_target: all banner check_id _populate_target _populate_target: _mount_target - -for i in $(DIRS); do make -C $$i $(TARGET_RFS); done >/dev/null + for i in $(DIRS); do make -C $$i $(TARGET_RFS); done >/dev/null + [ -e $(TARGET_MNT)/bin/ash ] && ln -sf ash $(TARGET_MNT)/bin/sh || \ + ln -sf sash $(TARGET_MNT)/bin/sh $(ELKSCMD_DIR)/tools/ver.pl $(ELKS_DIR)/Makefile > $(TARGET_MNT)/etc/issue [ "$(INSTALL_KTCP)" = "yes" ] && \ cp -p $(ELKSNET_DIR)/ktcp/ktcp $(TARGET_MNT)/bin || true @@ -162,7 +168,7 @@ _mount_target: then echo -e "\n\n *** Only root can build disk images *** \n\n"; exit 1; fi umount $(TARGET_FS) >/dev/null 2>&1 || true dd if=/dev/zero of=$(TARGET_FS) bs=1024 count=$(TARGET_BLKS) 2>/dev/null - $(MKFS) $(MKFS_OPTS) $(TARGET_FS) $(TARGET_BLKS) >/dev/null + $(MKFS) $(MKFS_OPTS) $(TARGET_FS) >/dev/null mkdir -p $(TARGET_MNT) mount $(LOOP) $(TARGET_FS) $(TARGET_MNT) (cd $(ELKSCMD_DIR)/rootfs_template; \ @@ -181,6 +187,14 @@ check_id: exit 1; \ fi +full1722: + @if [ "$(shell id -u)" != "0" ]; \ + then echo -e "\n\n *** Only root can build disk images *** \n\n"; exit 1; fi + @$(MAKE) _build_bootable_target \ + TARGET_FS=$(FULL1722_TARGET_FS) \ + TARGET_RFS=rfs \ + TARGET_BLKS=$(FULL1722_TARGET_BLKS) \ + INSTALL_KTCP=yes full3: @if [ "$(shell id -u)" != "0" ]; \ then echo -e "\n\n *** Only root can build disk images *** \n\n"; exit 1; fi @@ -195,7 +209,7 @@ full5: then echo -e "\n\n *** Only root can build disk images *** \n\n"; exit 1; fi @$(MAKE) _build_bootable_target \ TARGET_FS=$(FULL5_TARGET_FS) \ - TARGET_RFS=rfs \ + TARGET_RFS=max_rfs \ TARGET_BLKS=$(FULL5_TARGET_BLKS) \ INSTALL_KTCP=yes @@ -211,9 +225,9 @@ comb_net: @if [ "$(shell id -u)" != "0" ]; \ then echo -e "\n\n *** Only root can build disk images *** \n\n"; exit 1; fi @$(MAKE) _build_bootable_target \ - TARGET_FS=$(ROOT_NET_TARGET_FS) \ - TARGET_RFS=net_rfs \ - TARGET_BLKS=$(ROOT_NET_TARGET_BLKS) \ + TARGET_FS=$(COMB_NET_TARGET_FS) \ + TARGET_RFS=min_rfs \ + TARGET_BLKS=$(COMB_NET_TARGET_BLKS) \ INSTALL_KTCP=yes boot: $(ELKS_DIR)/arch/i86/boot/Image @@ -235,8 +249,19 @@ sibo: TARGET_RFS=smin_rfs \ TARGET_BLKS=$(SIBO_TARGET_BLKS) -images.zip: boot comb root comb_net full3 full5 - zip images.zip boot root comb comb_net full3 full5 +images: $(IMAGES) + +images.zip: $(IMAGES) + zip -9q images.zip $(IMAGES) + -@stat -c "%s %n" images.zip + +images.tar.gz: $(IMAGES) + tar -c $(IMAGES) | gzip -9 > images.tar.gz + -@stat -c "%s %n" images.tar.gz + +images.tar.xz: $(IMAGES) + tar -c $(IMAGES) | xz -e > images.tar.xz + -@stat -c "%s %n" images.tar.xz ####### # EOF # diff --git a/elkscmd/ash/Makefile b/elkscmd/ash/Makefile index b61a7cf53..0ba0c0afc 100644 --- a/elkscmd/ash/Makefile +++ b/elkscmd/ash/Makefile @@ -68,9 +68,11 @@ all: ash ash: $(OBJS) $(CC) $(CFLAGS) -s -o ash $(OBJS) $(LIBS) +max_rfs: install + rfs: install -min_rfs: install +min_rfs: net_rfs: install @@ -78,8 +80,6 @@ smin_rfs: install: ash cp -p ash $(TARGET_MNT)/bin/ash - rm -f $(TARGET_MNT)/bin/sh - ln -s ash $(TARGET_MNT)/bin/sh clean: rm -f core ash $(CLEANFILES) diff --git a/elkscmd/bc/Makefile b/elkscmd/bc/Makefile index fb897a0e6..1915ded2d 100644 --- a/elkscmd/bc/Makefile +++ b/elkscmd/bc/Makefile @@ -89,6 +89,8 @@ $(BINDIR)/bc: bc $(LIBDIR)/libmath.b: libmath.b install -c -o bin $? $@ +max_rfs: all + rfs: all cp -p bc $(TARGET_MNT)/bin # cp -p fbc $(TARGET_MNT)/bin diff --git a/elkscmd/byacc/Makefile b/elkscmd/byacc/Makefile index 81632f751..edfa76f02 100644 --- a/elkscmd/byacc/Makefile +++ b/elkscmd/byacc/Makefile @@ -86,9 +86,11 @@ all: $(PROGRAM) $(PROGRAM): $(OBJS) $(LIBS) $(LINKER) $(LDFLAGS) -o $(PROGRAM) $(OBJS) $(LIBS) +max_rfs: install + rfs: install -min_rfs: all +min_rfs: net_rfs: diff --git a/elkscmd/disk_utils/Makefile b/elkscmd/disk_utils/Makefile index f64eef37e..b64643c5a 100644 --- a/elkscmd/disk_utils/Makefile +++ b/elkscmd/disk_utils/Makefile @@ -40,6 +40,8 @@ SPROGS=mkfs all: $(PROGS) +max_rfs: install + rfs: install min_rfs: install diff --git a/elkscmd/e3/Makefile b/elkscmd/e3/Makefile index 8beb04c33..18cf7d7bd 100644 --- a/elkscmd/e3/Makefile +++ b/elkscmd/e3/Makefile @@ -7,6 +7,8 @@ all: $(ASOURCES) Makefile nasm $(AFLAGS) -o e3-16.o $(ASOURCES) -l e3-16.lst -D AS86 -D ELKS ld86 -0 -s -i -H 0xF800 -o e3 e3-16.o +max_rfs: all + rfs: all cp -p e3 $(TARGET_MNT)/bin diff --git a/elkscmd/elvis/Makefile b/elkscmd/elvis/Makefile index 7b129b71d..2f12d1c10 100644 --- a/elkscmd/elvis/Makefile +++ b/elkscmd/elvis/Makefile @@ -330,6 +330,8 @@ SRC8= vars.c vcmd.c vi.c vi.h refont.c all: $(PROGS) @echo done. +max_rfs: all + rfs: all cp -p $(PROGS) $(TARGET_MNT)/bin diff --git a/elkscmd/file_utils/Makefile b/elkscmd/file_utils/Makefile index d20b57a65..41e6dcbaa 100644 --- a/elkscmd/file_utils/Makefile +++ b/elkscmd/file_utils/Makefile @@ -46,6 +46,9 @@ SMIN_PRGS=cat cp ls mkdir sync all: $(PRGS) +max_rfs: all + cp -p $(PRGS) $(TARGET_MNT)/bin + rfs: all cp -p $(PRGS) $(TARGET_MNT)/bin diff --git a/elkscmd/image_stats.sh b/elkscmd/image_stats.sh new file mode 100755 index 000000000..3602a323b --- /dev/null +++ b/elkscmd/image_stats.sh @@ -0,0 +1,30 @@ +#!/bin/sh + +# Show misc. statistics for ELKS disk images + +MTPT=/mnt/elks +IMAGES="root comb comb_net full5 full3 full1722" + +echo +echo " ELKS disk image file statistics" +echo "-----------------------------------" + +printf "|%7s %s %5s|%5s|%5s|%5s|\n" "Image" '|' "Total" "Used" "Free" "%use" +echo '+--------+------+-----+-----+-----+' +umount $MTPT 2>/dev/null +umount $MTPT 2>/dev/null +for X in $IMAGES + do if [ -e $X ] + then + mount $X $MTPT + INODES="$(find $MTPT | wc -l)" + TOTAL="$(df $MTPT | grep "$MTPT" | sed 's/ */ /g' | cut -d' ' -f2)" + USED="$(df $MTPT | grep "$MTPT" | sed 's/ */ /g' | cut -d' ' -f3)" + FREE="$(df $MTPT | grep "$MTPT" | sed 's/ */ /g' | cut -d' ' -f4)" + PCT="$(df $MTPT | grep "$MTPT" | sed 's/ */ /g' | cut -d' ' -f5)" + printf "%8s %s %5s %5s %5s %5s\n" "$X" '|' "$TOTAL" "$USED" "$FREE" "$PCT" + umount $MTPT + fi +done + +echo diff --git a/elkscmd/inet/Makefile b/elkscmd/inet/Makefile index a0af1f754..cde96de6f 100644 --- a/elkscmd/inet/Makefile +++ b/elkscmd/inet/Makefile @@ -41,6 +41,9 @@ DIRS2= all: @for i in $(DIRS); do make -C $$i all ; done +max_rfs: + @for i in $(DIRS); do make -C $$i max_rfs install ; done + rfs: net_rfs: diff --git a/elkscmd/inet/nettools/Makefile b/elkscmd/inet/nettools/Makefile index 031393081..64281946e 100644 --- a/elkscmd/inet/nettools/Makefile +++ b/elkscmd/inet/nettools/Makefile @@ -39,6 +39,8 @@ CFLAGS=-0 -O -ansi -I$(ELKSNET_DIR) -I$(ELKS_DIR)/include all: $(PRGS) +max_rfs: install + rfs: net_rfs: install diff --git a/elkscmd/inet/telnet/Makefile b/elkscmd/inet/telnet/Makefile index 8700cc579..cbc02cf86 100644 --- a/elkscmd/inet/telnet/Makefile +++ b/elkscmd/inet/telnet/Makefile @@ -42,6 +42,8 @@ all: telnet telnet: $(SRC) $(CC) $(CFLAGS) -I$(INC_DIR) $(LDFLAGS) -o $@ $(SRC) +max_rfs: all + net_rfs: all install: all diff --git a/elkscmd/inet/urlget/Makefile b/elkscmd/inet/urlget/Makefile index ec6e579ee..fd588e7d3 100644 --- a/elkscmd/inet/urlget/Makefile +++ b/elkscmd/inet/urlget/Makefile @@ -44,6 +44,8 @@ all: urlget urlget: $(SRC) $(CC) $(CFLAGS) $(LDFLAGS) -I$(INC_DIR) -o urlget $(SRC) +max_rfs: all + net_rfs: all install: all diff --git a/elkscmd/levee/Makefile b/elkscmd/levee/Makefile index 41a911d0d..689a3ffea 100644 --- a/elkscmd/levee/Makefile +++ b/elkscmd/levee/Makefile @@ -51,6 +51,8 @@ all: lev lev: $(OBJS) $(CC) $(LDFLAGS) -o lev $(OBJS) +max_rfs: install + rfs: install net_rfs: install diff --git a/elkscmd/m4/Makefile b/elkscmd/m4/Makefile index 55ccc99b7..2079cce4e 100644 --- a/elkscmd/m4/Makefile +++ b/elkscmd/m4/Makefile @@ -49,9 +49,11 @@ all: m4 m4: $(OBJS) $(CC) $(CFLAGS) -o m4 $(OBJS) $(LIBS) +max_rfs: install + rfs: install -min_rfs: install +min_rfs: net_rfs: install diff --git a/elkscmd/minix1/Makefile b/elkscmd/minix1/Makefile index bb664d702..c8f80c2bc 100644 --- a/elkscmd/minix1/Makefile +++ b/elkscmd/minix1/Makefile @@ -45,6 +45,9 @@ NETPRGS = decomp16 du grep wc all: $(PRGS) +max_rfs: all + cp -p $(PRGS) $(TARGET_MNT)/bin + rfs: all cp -p $(PRGS) $(TARGET_MNT)/bin diff --git a/elkscmd/minix2/Makefile b/elkscmd/minix2/Makefile index 9f839f025..9e7618dac 100644 --- a/elkscmd/minix2/Makefile +++ b/elkscmd/minix2/Makefile @@ -49,6 +49,9 @@ lpd: lpd.o ../lib/mktemp.o ../lib/mktemp.o: make -C ../lib mktemp.o +max_rfs: all + cp -p $(PRGS) $(TARGET_MNT)/bin + rfs: all cp -p $(PRGS) $(TARGET_MNT)/bin diff --git a/elkscmd/minix3/Makefile b/elkscmd/minix3/Makefile index 02c4fbbe0..ed9a32e8c 100644 --- a/elkscmd/minix3/Makefile +++ b/elkscmd/minix3/Makefile @@ -42,6 +42,9 @@ NETPRGS= all: $(PRGS) +max_rfs: all + cp -p $(PRGS) $(TARGET_MNT)/bin + rfs: all cp -p $(PRGS) $(TARGET_MNT)/bin diff --git a/elkscmd/misc_utils/Makefile b/elkscmd/misc_utils/Makefile index 07f961db1..ce139b518 100644 --- a/elkscmd/misc_utils/Makefile +++ b/elkscmd/misc_utils/Makefile @@ -53,6 +53,9 @@ uncompress: compress zcat: compress ln -sf compress zcat +max_rfs: all + cp -p $(STD_USR_BIN) $(TARGET_MNT)/usr/bin + rfs: all cp -p $(STD_USR_BIN) $(TARGET_MNT)/usr/bin diff --git a/elkscmd/mtools/Makefile b/elkscmd/mtools/Makefile index 3bf4f73d8..e73dda194 100644 --- a/elkscmd/mtools/Makefile +++ b/elkscmd/mtools/Makefile @@ -51,9 +51,11 @@ CMNOBJ = init.o search.o unixname.o subdir.o getfat.o devices.o all: $(PROGS) +max_rfs: install + rfs: install -min_rfs: install +min_rfs: net_rfs: install diff --git a/elkscmd/prn-utils/Makefile b/elkscmd/prn-utils/Makefile index 2d07ab9d2..ab0733ffb 100644 --- a/elkscmd/prn-utils/Makefile +++ b/elkscmd/prn-utils/Makefile @@ -40,6 +40,9 @@ MIN_PRGS= all: $(PRGS) +max_rfs: all + cp -p $(PRGS) $(TARGET_MNT)/bin + rfs: all cp -p $(PRGS) $(TARGET_MNT)/bin diff --git a/elkscmd/sash/Makefile b/elkscmd/sash/Makefile index 6345876c6..99938f94b 100644 --- a/elkscmd/sash/Makefile +++ b/elkscmd/sash/Makefile @@ -46,6 +46,8 @@ sash: $(OBJS) clean: rm -f core sash $(OBJS) +max_rfs: install + rfs: install net_rfs: rfs diff --git a/elkscmd/sh_utils/Makefile b/elkscmd/sh_utils/Makefile index 50b5da34c..8ee5d74d7 100644 --- a/elkscmd/sh_utils/Makefile +++ b/elkscmd/sh_utils/Makefile @@ -47,6 +47,9 @@ write: write.o ../sys_utils/utent.o all: $(PRGS) +max_rfs: all + cp -p $(PRGS) $(TARGET_MNT)/bin + rfs: all cp -p $(PRGS) $(TARGET_MNT)/bin diff --git a/elkscmd/sys_utils/Makefile b/elkscmd/sys_utils/Makefile index 3ccd20af8..9732103be 100644 --- a/elkscmd/sys_utils/Makefile +++ b/elkscmd/sys_utils/Makefile @@ -51,6 +51,9 @@ SMIN_PRGS = init mount umount all: $(PRGS) +max_rfs: all + cp -p $(PRGS) $(TARGET_MNT)/bin + rfs: all cp -p $(PRGS) $(TARGET_MNT)/bin diff --git a/elkscmd/xvi/Makefile b/elkscmd/xvi/Makefile index 10b01584a..2280e313f 100644 --- a/elkscmd/xvi/Makefile +++ b/elkscmd/xvi/Makefile @@ -42,6 +42,9 @@ all: xvi xvi: xvi.o $(CC) $(LFLAGS) xvi.o -o xvi +max_rfs: xvi + cp -p xvi $(TARGET_MNT)/bin$ + rfs: xvi cp -p xvi $(TARGET_MNT)/bin$