-
Notifications
You must be signed in to change notification settings - Fork 139
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
Document elf2tag script #1916
Document elf2tag script #1916
Conversation
Cool idea! |
d798a91
to
6932fed
Compare
Does this need any additions?
|
8e1b8b8
to
08a9cbb
Compare
@ndim Here a more extensive example using
|
08a9cbb
to
5d11542
Compare
I have updated the example in the elf2tag.1 man page. ELF2TAG(1) avrdude Manual ELF2TAG(1)
NAME
elf2tag - output a tagfile for the avrdude disasm command
SYNOPSIS
elf2tag <file.elf>
elf2tag [-h | --help]
DESCRIPTION
elf2tag generates a tagfile for use with the avrdude disasm command.
OPTIONS
-h --help
Prints the help message and exits.
EXAMPLES
$ elf2tag blink.elf > blink.tag
$ avrdude -qq -c dryrun -p m328p -U blink.elf -t
avrdude> disasm -t=file.tag flash 0 512
AUTHORS
elf2tag was written by Johannes Bauer with small modifications by
Stefan Rueger.
SEE ALSO
avrdude(1), avr-nm(1), avr-objdump(1)
avrdude 2024-11-20 ELF2TAG(1) |
Still TODO: Whether and possibly how to hook updating This is a matter of running the |
src/elf2tag.1
Outdated
.fam C | ||
$ elf2tag blink.elf > blink.tag | ||
$ avrdude \-qq \-c dryrun \-p m328p \-U blink.elf \-t | ||
avrdude> disasm \-t=file.tag flash 0 512 |
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.
\-t=blink.tag
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.
Fixed.
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.
And the CI has caught me forgetting to fix the generated src/elf2tag.1
file. Fixed. This time, really.
5d11542
to
5aaaf76
Compare
@stefanrueger Do you have any preferences on hooking the
|
28badd7
to
01d0309
Compare
Haha. The CI check just caught me forgetting to run the update script after the quick fix changing I hereby formally suggest the CI check as a way to hook up the update script. |
01d0309
to
85ffd50
Compare
Cool work @ndim! I don't really have an opinion on how to deal with the workflows here (principally, b/c I have very little understanding about the ramifictions that the suggested CI/Cmake/automake changes have). So, yes, please feel free to implement a sensible solution. |
85ffd50
to
f2ac3ef
Compare
aa2d0e7
to
ac534c9
Compare
Checking this in CI adds no requirement to install asciidoctor to everybody who clones and works with the avrdude repo, just for people editing However, it still catches all pull requests which either
therefore ensuring consistency between the partially redundant information in This principle could be applied to other generated files as well. |
AFAICT, this is ready to merge. |
Add basic elf2tag(1) manpage using asciidoc/asciidoctor. To update the elf2tag.1 file from elf2tag.1.adoc, run the update-elf2tag-manpage script. No CI or buildsystem or git precommit hook integration yet.
This makes the .github/workflows/check-sourcecode more a "check-repo" than a "check-sourcecode".
ac534c9
to
f85a584
Compare
This aims to add documentation to the
elf2tag
script (installed to$(bindir)
by default):Add
-h
and--help
argument handling to print the usage information.Add a very basic man page
elf2tag.1
.Some distributions encourage having man pages (e.g. Fedora), some other distributions require a man page for each executable in
$(bindir)
(e.g. Debian).It makes sense to concentrate this documentation effort at the place common to all distributions, i.e. upstream, i.e. here.
TODO:
Build
elf2tag.1
fromelf2tag.1.adoc
using theupdate-elf2tag-manpage
script as git precommit hook, CI command, or buildsystem command, or just commitelf2tag.1
withoutelf2tag.1.adoc
andupdate-elf2tag-manpage
(like theavrdude.1
file)?Is the example command with
avrdude disasm
accurate?