diff options
author | Ian Moffett <ian@osmora.org> | 2024-06-24 23:00:41 -0400 |
---|---|---|
committer | Ian Moffett <ian@osmora.org> | 2024-06-24 23:00:41 -0400 |
commit | 963478ff0ad358fc3a44ff5dba0c64ddc889f296 (patch) | |
tree | a14c3ea6feb7d1b783364737fcefabce249473ff /configure.ac | |
parent | 236963e7563be3e3f8220dac7bb4af446928e194 (diff) | |
parent | 6f6a36d1e8b3dd50cb4d394fa1de4888663b4ea5 (diff) |
Import hyra expt
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac new file mode 100644 index 0000000..c04b330 --- /dev/null +++ b/configure.ac @@ -0,0 +1,27 @@ +AC_INIT([Hyra], [1.1], [ian@osmora.org]) + +KERN_CFLAGS_AMD64="-fexceptions --std=gnu11 -ffreestanding -fno-stack-protector -fno-pic \\ + -Werror=implicit -Werror=implicit-function-declaration \\ + -Werror=implicit-int -Werror=int-conversion \\ + -Werror=missing-prototypes \\ + -Werror=incompatible-pointer-types -Werror=int-to-pointer-cast \\ + -Werror=return-type -Wunused -mabi=sysv -mno-80387 -mno-mmx -mno-3dnow \\ + -mno-sse -mno-sse2 -mno-red-zone -mcmodel=kernel -pedantic \\ + -I sys/include/ -I sys/include/lib/ -D_KERNEL -Wno-pointer-sign -MMD" + +QEMU_FLAGS_AMD64="--enable-kvm -monitor stdio \\ + -M q35 -m 1G -smp 4 -cpu host \\ + -cdrom Hyra.iso" + +HYRA_BUILDDATE=`export LANG=en_US.UTF-8 ; date` +HYRA_BUILDBRANCH="`basename $PWD`" + +AC_SUBST(HYRA_BUILDDATE, [$HYRA_BUILDDATE]) +AC_SUBST(HYRA_BUILDBRANCH, [$HYRA_BUILDBRANCH]) + +AC_SUBST(KERNEL_CFLAGS, [$KERN_CFLAGS_AMD64]) +AC_SUBST(QEMU_FLAGS, [$QEMU_FLAGS_AMD64]) +AC_SUBST(QEMU, [qemu-system-x86_64]) +AC_SUBST(ARCH, [amd64]) +AC_CONFIG_FILES([Makefile]) +AC_OUTPUT |