Skip to content

Commit

Permalink
Update scripts and fix 8018x beep.c
Browse files Browse the repository at this point in the history
  • Loading branch information
ghaerr committed Oct 16, 2024
1 parent a10c5b0 commit be5cb9c
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 10 deletions.
4 changes: 2 additions & 2 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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."
Expand Down
4 changes: 4 additions & 0 deletions buildimages.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
#
# This script is used to build all ELKS images outside Github CI
set -x
set -e

cleanup()
{
Expand Down Expand Up @@ -41,6 +43,7 @@ build_ibm()
{
cleanup
cp ibmpc-1440.config .config
#cp ibmpc-1440-nc.config .config
make

cd image
Expand All @@ -54,5 +57,6 @@ build_pc98
build_8018x

cp ibmpc-1440.config .config
#cp ibmpc-1440-nc.config .config
cleanup
make
6 changes: 4 additions & 2 deletions elkscmd/sys_utils/beep.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand All @@ -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
Expand Down
10 changes: 5 additions & 5 deletions image/Make.devices
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
3 changes: 2 additions & 1 deletion image/Make.image
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit be5cb9c

Please sign in to comment.