From 268ab18b4861a3f65c04af5187020b566cf1afac Mon Sep 17 00:00:00 2001 From: Adrien Bourmault Date: Fri, 22 Nov 2019 15:38:29 +0100 Subject: [PATCH] Some changes in Makefile to correct incompatibilities --- Makefile | 18 +++++++----------- build/create_disk.sh | 10 +++++----- build/install-os-k.sh | 12 ++++++------ 3 files changed, 18 insertions(+), 22 deletions(-) diff --git a/Makefile b/Makefile index c090450..f75935b 100644 --- a/Makefile +++ b/Makefile @@ -22,7 +22,7 @@ # along with OS/K. If not, see . # #=----------------------------------------------------------------------------=# -.PHONY: all test test32 debug gdb install dust clean OS/K run +.PHONY: all test test32 debug gdb installonimage dust clean OS/K run .DELETE_ON_ERROR: $(BINDIR)/kaleid .DEFAULT_GOAL := all @@ -264,28 +264,24 @@ all : @make OS/K -j 8 ## QEMU/DEBUG RELATED -testkvm: all install +testkvm: all installonimage @qemu-system-x86_64 -vga std -enable-kvm -soundhw pcspk -s \ -rtc base=localtime -m $(ram) -hda $(installdisk) \ -d cpu_reset,guest_errors,pcall,int 2> $(BUILDDIR)/qemu.log & run: test -test: all install +test: all installonimage @qemu-system-x86_64 -vga std -cpu $(cpu) -soundhw pcspk -s \ -rtc base=localtime -m $(ram) -hda $(installdisk) \ -d cpu_reset,guest_errors,pcall,int 2> $(BUILDDIR)/qemu.log & - @qemu-system-x86_64 -vga std -soundhw pcspk -s \ - -rtc base=localtime -m 8192 -hda /dev/sdc \ - -d cpu_reset,guest_errors,pcall,int & - -test32: all install +test32: all installonimage @qemu-system-i386 -m $(ram) -hda $(installdisk) -d \ cpu_reset,guest_errors,pcall,int 2> $(BUILDDIR)/qemu.log & -gdb: all install +gdb: all installonimage @setsid qemu-system-x86_64 -m $(ram) -soundhw pcspk -rtc base=localtime \ -hda $(installdisk) -no-reboot -no-shutdown -d \ cpu_reset,guest_errors,pcall,int -s -S 2> $(BUILDDIR)/qemu.log & @@ -295,7 +291,7 @@ gdb: all install -ex "symbol-file $(BINDIR)/kaleid" \ -ex "break BtStartKern" \ -ddd: all install_os_k +ddd: all installonimage @setsid qemu-system-x86_64 -m $(ram) -hda $(installdisk) -no-reboot -soundhw pcspk \ -no-shutdown -d cpu_reset,guest_errors,pcall,int -s 2> $(BUILDDIR)/qemu.log & @ddd @@ -303,7 +299,7 @@ ddd: all install_os_k ## HD IMAGE RELATED ---------------------------------------------------------- # -install: $(installdisk) $(MBRDIR)/grub.cfg $(BINDIR)/kaleid +installonimage: $(installdisk) $(MBRDIR)/grub.cfg @echo ${CL2}[$@] ${NC}Installing MBR on image...${CL3} @$(BUILDDIR)/install-os-k.sh $(installdisk) $(MBRDIR)/grub.cfg $(BINDIR)/kaleid @echo ${CL2}[$@] ${CL}Success.${CL3} diff --git a/build/create_disk.sh b/build/create_disk.sh index 081d773..ec893e7 100755 --- a/build/create_disk.sh +++ b/build/create_disk.sh @@ -36,8 +36,8 @@ dd if=/dev/zero of=$1 bs=512 count=131072 status=progress ## Partition the image echo ${CL2}[create_disk.sh]${NC} Partitionning image... \(parted\)${CL3} -#/sbin/parted --script $1 mktable msdos mkpart primary 2048s 100% set 1 boot on -/sbin/fdisk $1 > /dev/null < /dev/null <