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

Creation of IMAGE_FILE (if needed) not well implemented #204

Open
ckormanyos opened this issue Dec 22, 2021 · 1 comment
Open

Creation of IMAGE_FILE (if needed) not well implemented #204

ckormanyos opened this issue Dec 22, 2021 · 1 comment

Comments

@ckormanyos
Copy link
Owner

ckormanyos commented Dec 22, 2021

Some targets such as RPI-Zero and BBB use an image file to boot from SD card. The creation of $(IMAGE_FILE) --- if one is needed --- is, however, not well implemented in the build system. The rule for making an image file is in the target flags and this rule might use objcopy or dimilar. But those program symbols might not be defined at the time of including the target-specific build flags.

This issue is intended to clean up the support of the rule that creates the special image file on targets needing it.

When relevant, this issue addresses both the Win* as well as the *nix build.

@ckormanyos ckormanyos self-assigned this Dec 22, 2021
@ckormanyos ckormanyos changed the title Creation of IMAGE_FILE (if needed) is not tidy Creation of IMAGE_FILE (if needed) is very well implemented Feb 14, 2022
@ckormanyos ckormanyos changed the title Creation of IMAGE_FILE (if needed) is very well implemented Creation of IMAGE_FILE (if needed) not well implemented Feb 14, 2022
@ckormanyos
Copy link
Owner Author

BBB needs its very simple SD card header.

Try to use standard simple (semi-portable) tools like the linker itself (ld, which can pack buffers) combined with objdump, possibly combined with xxd (and possibly also with sed or gawk if needed) to handle the very few hex manipulations required.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant