-
Notifications
You must be signed in to change notification settings - Fork 12
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
sketch on init.app #10
base: master
Are you sure you want to change the base?
Conversation
i've added a repo that will test this new functionality at forget that patch for baremetal.sh. try this one:
|
I'll take a look into this. I wonder if the auto started app name should be entered somewhere when monitor is built. Everything used to be in a single repo back when the project started. Things were parted out as some people just wanted to make use of Pure64. The CLI was removed from the kernel and became Monitor since I have no need for a user interface with BareMetal-Node. |
yes, you could pass the auto start app name in a macro at build time. in c, this would look like cc -DINIT=init.app c.c Then in c.c char* init=#INIT |
But linux/unix hard code "init" as the name of the first process that is run, so no need to make it configurable |
I've updated Monitor to search the disk for a file called "init.app". If one is found it will be auto-started. |
NASM does have some command line options that I use for building Pure64 (two different binaries from the same source). I'll look into that as well. |
hi ian,
i want to bundle k scripts with k.app in the BMFS.
this will stop monitor from auto loading k because there will be more than one file in bmfs.
i propose auto loading a program if it is called 'init.app'
this PR is a sketch (not tested) of how it would look - i think it's simpler code, too. feel free to reject the PR if it's not right and implement it properly
also, here is a patch to baremetal.sh i'd need in order to bundle k (as init.app) with k scripts and data:
it's hard to hack on baremetal with the mutiple repos and the ./baremetal.sh setup script. this is the main reason i'm posting a patch to baremetal.sh and not a PR. had you ever thought of condensing everything into the one repo?
best,
jack