-
Notifications
You must be signed in to change notification settings - Fork 55
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support for Multiple User Configs (#38)
build: add support for multiple configuration * Added user-defined config files * Added default `os.conf` for hardware * Added default `emulator.conf` for emulator * Added `ZOS_CONFIG` env var support to override the default `os.conf` when calling `make` * Updated CI to reference `emulator.conf` * Move defaults configs into `configs/*.default` * `make menuconfig` will now copy over the default `os.conf` for backwards compatibility and user-defined defaults Co-authored-by: Zeal 8-bit <zeal8bit@gmail.com>
- Loading branch information
Showing
4 changed files
with
134 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
CONFIG_CPU_FREQ=10000000 | ||
CONFIG_TARGET="zeal8bit" | ||
CONFIG_TARGET_ZEAL_8_BIT=y | ||
# CONFIG_TARGET_TRS_80 is not set | ||
# CONFIG_TARGET_AGON_LIGHT is not set | ||
|
||
# | ||
# Zeal 8-bit Computer configuration | ||
# | ||
CONFIG_TARGET_NUMBER=1 | ||
CONFIG_TARGET_HAS_MMU=y | ||
CONFIG_TARGET_HAS_DRIVERS_HOOK=y | ||
CONFIG_KERNEL_RAM_PHYS_ADDRESS=0x88000 | ||
CONFIG_ROMDISK_ADDRESS=0x8000 | ||
CONFIG_KERNEL_PHYS_ADDRESS=0x4000 | ||
CONFIG_KERNEL_TARGET_HAS_MMU=y | ||
CONFIG_TARGET_ENABLE_COMPACTFLASH=y | ||
|
||
# | ||
# CompactFlash driver configuration | ||
# | ||
CONFIG_TARGET_COMPACTFLASH_ADDRESS=0x70 | ||
CONFIG_TARGET_COMPACTFLASH_TIMEOUT=30 | ||
# end of CompactFlash driver configuration | ||
|
||
# CONFIG_ENABLE_EMULATION_HOSTFS is not set | ||
CONFIG_TARGET_ENABLE_VIDEO=y | ||
CONFIG_TARGET_STDOUT_VIDEO=y | ||
# CONFIG_TARGET_STDOUT_UART is not set | ||
CONFIG_TARGET_KEYBOARD_QWERTY=y | ||
# CONFIG_TARGET_KEYBOARD_DVORAK is not set | ||
# end of Zeal 8-bit Computer configuration | ||
|
||
# | ||
# Kernel configuration | ||
# | ||
# CONFIG_KERNEL_REPRODUCIBLE_BUILD is not set | ||
CONFIG_KERNEL_STACK_ADDR=0xFFFF | ||
CONFIG_KERNEL_RAM_START=0xC000 | ||
# CONFIG_KERNEL_COLDBOOT_HOOK is not set | ||
# CONFIG_KERNEL_EXIT_HOOK is not set | ||
CONFIG_KERNEL_DRIVERS_HOOK=y | ||
CONFIG_KERNEL_MAX_NESTED_PROGRAMS=3 | ||
CONFIG_KERNEL_MAX_LOADED_DRIVERS=16 | ||
CONFIG_KERNEL_MAX_OPENED_DEVICES=16 | ||
CONFIG_KERNEL_MAX_OPENED_FILES=16 | ||
CONFIG_KERNEL_PATH_MAX=128 | ||
CONFIG_KERNEL_INIT_EXECUTABLE="A:/init.bin" | ||
CONFIG_KERNEL_INIT_EXECUTABLE_ADDR=0x4000 | ||
CONFIG_KERNEL_LOG_BOOT_MOUNTED_DISKS=y | ||
CONFIG_KERNEL_ENABLE_ZEALFS_SUPPORT=y | ||
# end of Kernel configuration |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
CONFIG_CPU_FREQ=10000000 | ||
CONFIG_TARGET="zeal8bit" | ||
CONFIG_TARGET_ZEAL_8_BIT=y | ||
# CONFIG_TARGET_TRS_80 is not set | ||
# CONFIG_TARGET_AGON_LIGHT is not set | ||
|
||
# | ||
# Zeal 8-bit Computer configuration | ||
# | ||
CONFIG_TARGET_NUMBER=1 | ||
CONFIG_TARGET_HAS_MMU=y | ||
CONFIG_TARGET_HAS_DRIVERS_HOOK=y | ||
CONFIG_KERNEL_RAM_PHYS_ADDRESS=0x88000 | ||
CONFIG_ROMDISK_ADDRESS=0x8000 | ||
CONFIG_KERNEL_PHYS_ADDRESS=0x0000 | ||
CONFIG_KERNEL_TARGET_HAS_MMU=y | ||
CONFIG_TARGET_ENABLE_COMPACTFLASH=y | ||
|
||
# | ||
# CompactFlash driver configuration | ||
# | ||
CONFIG_TARGET_COMPACTFLASH_ADDRESS=0x70 | ||
CONFIG_TARGET_COMPACTFLASH_TIMEOUT=30 | ||
# end of CompactFlash driver configuration | ||
|
||
CONFIG_ENABLE_EMULATION_HOSTFS=y | ||
CONFIG_TARGET_ENABLE_VIDEO=y | ||
CONFIG_TARGET_STDOUT_VIDEO=y | ||
# CONFIG_TARGET_STDOUT_UART is not set | ||
CONFIG_TARGET_KEYBOARD_QWERTY=y | ||
# CONFIG_TARGET_KEYBOARD_DVORAK is not set | ||
# end of Zeal 8-bit Computer configuration | ||
|
||
# | ||
# Kernel configuration | ||
# | ||
# CONFIG_KERNEL_REPRODUCIBLE_BUILD is not set | ||
CONFIG_KERNEL_STACK_ADDR=0xFFFF | ||
CONFIG_KERNEL_RAM_START=0xC000 | ||
# CONFIG_KERNEL_COLDBOOT_HOOK is not set | ||
# CONFIG_KERNEL_EXIT_HOOK is not set | ||
CONFIG_KERNEL_DRIVERS_HOOK=y | ||
CONFIG_KERNEL_MAX_NESTED_PROGRAMS=3 | ||
CONFIG_KERNEL_MAX_LOADED_DRIVERS=16 | ||
CONFIG_KERNEL_MAX_OPENED_DEVICES=16 | ||
CONFIG_KERNEL_MAX_OPENED_FILES=16 | ||
CONFIG_KERNEL_PATH_MAX=128 | ||
CONFIG_KERNEL_INIT_EXECUTABLE="A:/init.bin" | ||
CONFIG_KERNEL_INIT_EXECUTABLE_ADDR=0x4000 | ||
CONFIG_KERNEL_LOG_BOOT_MOUNTED_DISKS=y | ||
CONFIG_KERNEL_ENABLE_ZEALFS_SUPPORT=y | ||
# end of Kernel configuration |