Skip to content
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

Makefile refinements #31

Merged
merged 2 commits into from
Aug 12, 2020
Merged

Makefile refinements #31

merged 2 commits into from
Aug 12, 2020

Conversation

bjoernd
Copy link
Contributor

@bjoernd bjoernd commented Aug 10, 2020

Issue #, if available: Closes #27

Description of changes:

Makefile tweaks to make tooling more configurable and fix targets that depend on ISO generation.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

Makefile Outdated Show resolved Hide resolved
Makefile Outdated Show resolved Hide resolved
@@ -53,6 +53,18 @@ The `make` command generates the `kernel64.bin` multiboot-compatible ELF file, t
The `make iso` command takes the `kernel64.bin`, places it in `grub/boot/` directory hierarchy and generates a `boot.iso`
out of the `grub/` (using `grub/boot/grub/grub.cfg` as a default GRUB config).

#### Fedora
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does it make sense to detect current distro via /etc/os-release and automagically include corresponding Makefile.local?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That would be the next step. With this PR we create the basic infrastructure for custom Make configs. We can later follow up with autodetecting environments.

Add a mechanism to the Makefile that uses an optional `Makeconf.local` file to override
variables set in the main Makefile. This mechanism along with the changes allows non-standard
overrides for all tools used in the Make targets. Also add a README section on how this
enables building and running KTF on Fedora.

Signed-off-by: Bjoern Doebel <bjoern.doebel@gmail.com>
All the run-style targets depend on a valid ISO file being created, so
let's make that explicit.

Signed-off-by: Bjoern Doebel <bjoern.doebel@gmail.com>

fixup! Makefile: fix dependencies
@wipawel wipawel merged commit 50b809c into KernelTestFramework:master Aug 12, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Run KTF on Fedora 32
2 participants