From a10c5b0591a356f28556892db916c27c8610ddb7 Mon Sep 17 00:00:00 2001 From: Greg Haerr Date: Tue, 15 Oct 2024 21:55:44 -0600 Subject: [PATCH 1/3] [build] Change version number to v0.8.1 --- elks/Makefile-rules | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/elks/Makefile-rules b/elks/Makefile-rules index 5efa2a08a..f514ee3e7 100644 --- a/elks/Makefile-rules +++ b/elks/Makefile-rules @@ -57,7 +57,7 @@ include $(TOPDIR)/Make.defs VERSION = 0 # (0-255) PATCHLEVEL = 8 # (0-255) -SUBLEVEL = 0 # (0-255) +SUBLEVEL = 1 # (0-255) PRE = ######################################################################### From be5cb9c49d21f804e085f54d4c25d8be81f041fd Mon Sep 17 00:00:00 2001 From: Greg Haerr Date: Tue, 15 Oct 2024 22:27:03 -0600 Subject: [PATCH 2/3] Update scripts and fix 8018x beep.c --- build.sh | 4 ++-- buildimages.sh | 4 ++++ elkscmd/sys_utils/beep.c | 6 ++++-- image/Make.devices | 10 +++++----- image/Make.image | 3 ++- 5 files changed, 17 insertions(+), 10 deletions(-) diff --git a/build.sh b/build.sh index 9edc20c08..3515740b5 100755 --- a/build.sh +++ b/build.sh @@ -37,8 +37,8 @@ if [ "$1" = "auto" ]; then echo "Invoking 'make defconfig'..." make defconfig || clean_exit 2 echo "Building IBM PC image..." - #cp ibmpc-1440.config .config - cp ibmpc-1440-nc.config .config + cp ibmpc-1440.config .config + #cp ibmpc-1440-nc.config .config else echo echo "Now invoking 'make menuconfig' for you to configure the system." diff --git a/buildimages.sh b/buildimages.sh index 925a69b98..1fad85263 100755 --- a/buildimages.sh +++ b/buildimages.sh @@ -1,5 +1,7 @@ # # This script is used to build all ELKS images outside Github CI +set -x +set -e cleanup() { @@ -41,6 +43,7 @@ build_ibm() { cleanup cp ibmpc-1440.config .config + #cp ibmpc-1440-nc.config .config make cd image @@ -54,5 +57,6 @@ build_pc98 build_8018x cp ibmpc-1440.config .config +#cp ibmpc-1440-nc.config .config cleanup make diff --git a/elkscmd/sys_utils/beep.c b/elkscmd/sys_utils/beep.c index cdc0d422b..074de1c20 100644 --- a/elkscmd/sys_utils/beep.c +++ b/elkscmd/sys_utils/beep.c @@ -37,7 +37,8 @@ static void beep(long freq) //And play the sound using the PC speaker outb(0x06, PORTC_CONTROL); -#else +#endif +#ifdef CONFIG_ARCH_IBMPC //Set the PIT to the desired frequency unsigned int d = 1193180L / freq; outb(0xb6, TIMER_CMDS_PORT); @@ -56,7 +57,8 @@ static void silent() { #ifdef CONFIG_ARCH_PC98 outb(0x07, PORTC_CONTROL); -#else +#endif +#ifdef CONFIG_ARCH_IBMPC unsigned int tmp = inb(SPEAKER_PORT) & 0xFC; outb(tmp, SPEAKER_PORT); #endif diff --git a/image/Make.devices b/image/Make.devices index bf72772ff..bcb0d11f8 100755 --- a/image/Make.devices +++ b/image/Make.devices @@ -15,11 +15,11 @@ devices: ############################################################################## # Create frequently accessed /dev files first - $(MKDEV) /dev/console c 4 254 1 1 0600 - $(MKDEV) /dev/tty1 c 4 0 - $(MKDEV) /dev/ttyS0 c 4 64 - $(MKDEV) /dev/fd0 b 3 32 - $(MKDEV) /dev/fd1 b 3 40 +# $(MKDEV) /dev/console c 4 254 1 1 0600 +# $(MKDEV) /dev/tty1 c 4 0 +# $(MKDEV) /dev/ttyS0 c 4 64 +# $(MKDEV) /dev/fd0 b 3 32 +# $(MKDEV) /dev/fd1 b 3 40 ############################################################################## # Create memory devices. diff --git a/image/Make.image b/image/Make.image index 72f3595fa..a9b48f5f6 100644 --- a/image/Make.image +++ b/image/Make.image @@ -84,7 +84,8 @@ minixfs: # echo $$f >> FileList; \ # done # mfs -v $(VERBOSE) $(TARGET_FILE) addfs Filelist $(DESTDIR) - mfs $(VERBOSE) $(TARGET_FILE) genfs -a $(MINIX_MKFSOPTS) $(DESTDIR) +# mfs $(VERBOSE) $(TARGET_FILE) genfs -a $(MINIX_MKFSOPTS) $(DESTDIR) + mfs $(VERBOSE) $(TARGET_FILE) genfs $(MINIX_MKFSOPTS) $(DESTDIR) ifdef CONFIG_IMG_DEV # command to make char/block devices in image (no sudo required) $(MAKE) -f Make.devices "MKDEV=mfs $(TARGET_FILE) mknod" From 72e6be71bcd787e341f040d27f75b9e4ffb12693 Mon Sep 17 00:00:00 2001 From: Greg Haerr Date: Tue, 15 Oct 2024 22:30:58 -0600 Subject: [PATCH 3/3] Remove mfs mkfs --- image/Make.image | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/image/Make.image b/image/Make.image index a9b48f5f6..8f3007563 100644 --- a/image/Make.image +++ b/image/Make.image @@ -77,7 +77,7 @@ endif minixfs: rm -f $(TARGET_FILE) - mfs $(VERBOSE) $(TARGET_FILE) mkfs $(MINIX_MKFSOPTS) +# mfs $(VERBOSE) $(TARGET_FILE) mkfs $(MINIX_MKFSOPTS) # mfs -v $(VERBOSE) $(TARGET_FILE) addfs Image.all $(DESTDIR) # rm -f Filelist # for f in $$(cd $(DESTDIR); find * -name '*'); do \