-
Notifications
You must be signed in to change notification settings - Fork 61
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support for Multiple User Configs #38
Conversation
* 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
* make menuconfig will now copy over the default os.conf for backwards compatibility and user-defined defaults
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for your contribution, I left a few comments
@echo "Executing post commands..." | ||
@echo "Config: $(KCONFIG_CONFIG)" | ||
@echo "Kernel Physical Address: $(CONFIG_KERNEL_PHYS_ADDRESS)" | ||
@echo "Host FS: $(CONFIG_ENABLE_EMULATION_HOSTFS)" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks like a debugging log, this (currently) doesn't exist for other targets
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This was intentional - though it can be removed - it’s meant to serve as a reminder of what was used
$(CC) $(ASMFLAGS) -o$(FULLBIN) -b -m -s $(LINKERFILE_BUILT) $(BUILTOBJS) | ||
@mv $(BINDIR)/$(BIN_GENERATED) $(FULLBIN) | ||
@echo "OS binary: $(FULLBIN)" | ||
@echo "Executing post commands..." |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should be moved right above $(POSTCMD)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also intentional, meant to keep the “info print” at the end together
Co-authored-by: Zeal 8-bit <[email protected]>
Thanks for your PR, it's merged! |
make
How configs are loaded:
When the user uses
make menuconfig
, if no os.conf exists, the default configs/zeal8bit.default will be copied to os.conf and then loaded - users should always be editing os.conf with menuconfigMenuconfig also supports the
config
argument above, if no os.conf exists, menuconfig will copy theconfig
argument to os.conf ... example:make menuconfig config=configs/zealemu.default
will make the users os.conf a copy of the zealemu.default