Brian Masney
d81bab116b
tools/bootconfig: specify LDFLAGS as an argument to CC
...
Explicitly specify LDFLAGS as an argument to CC so that this can be
overridden by the user.
Link: https://lore.kernel.org/all/20250328183858.1417835-3-bmasney@redhat.com/
Signed-off-by: Brian Masney <bmasney@redhat.com >
Signed-off-by: Masami Hiramatsu (Google) <mhiramat@kernel.org >
2025-05-16 11:22:54 +09:00
Brian Masney
9c8cedef3d
tools/bootconfig: allow overriding CFLAGS assignment
...
Allow overriding the CFLAGS assignment so that the user can pass in
an outside value.
Link: https://lore.kernel.org/all/20250328183858.1417835-2-bmasney@redhat.com/
Signed-off-by: Brian Masney <bmasney@redhat.com >
Signed-off-by: Masami Hiramatsu (Google) <mhiramat@kernel.org >
2025-05-16 11:22:40 +09:00
Masami Hiramatsu
4ee1b4cac2
bootconfig: Cleanup dummy headers in tools/bootconfig
...
Cleanup dummy headers in tools/bootconfig/include except
for tools/bootconfig/include/linux/bootconfig.h.
For this change, I use __KERNEL__ macro to split kernel
header #include and introduce xbc_alloc_mem() and
xbc_free_mem().
Link: https://lkml.kernel.org/r/163187299574.2366983.18371329724128746091.stgit@devnote2
Signed-off-by: Masami Hiramatsu <mhiramat@kernel.org >
Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org >
2021-10-10 22:16:02 -04:00
Masami Hiramatsu
f30f00cc96
tools/bootconfig: Run test script when build all
...
Run the bootconfig test script when build all target
so that user can notice any issue when build it.
Link: https://lkml.kernel.org/r/163187295173.2366983.18295281097397499118.stgit@devnote2
Signed-off-by: Masami Hiramatsu <mhiramat@kernel.org >
Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org >
2021-10-10 20:44:05 -04:00
Masami Hiramatsu
306b69dce9
bootconfig: Support O=<builddir> option
...
Support O=<builddir> option to build bootconfig tool in
the other directory. As same as other tools, if you specify
O=<builddir>, bootconfig command is build under <builddir>.
Link: http://lkml.kernel.org/r/158323468033.10560.14661631369326294355.stgit@devnote2
Reported-by: Randy Dunlap <rdunlap@infradead.org >
Signed-off-by: Masami Hiramatsu <mhiramat@kernel.org >
Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org >
2020-03-03 17:38:42 -05:00
Masami Hiramatsu
081c65360b
tools: bootconfig: Add bootconfig test script
...
Add a bootconfig test script to ensure the tool and
boot config parser are working correctly.
Link: http://lkml.kernel.org/r/157867224728.17873.18114241801246589416.stgit@devnote2
Signed-off-by: Masami Hiramatsu <mhiramat@kernel.org >
Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org >
2020-01-13 13:19:39 -05:00
Masami Hiramatsu
950313ebf7
tools: bootconfig: Add bootconfig command
...
Add "bootconfig" command which operates the bootconfig
config-data on initrd image.
User can add/delete/verify the boot config on initrd
image using this command.
e.g.
Add a boot config to initrd image
# bootconfig -a myboot.conf /boot/initrd.img
Remove it.
# bootconfig -d /boot/initrd.img
Or verify (and show) it.
# bootconfig /boot/initrd.img
Link: http://lkml.kernel.org/r/157867223582.17873.14342161849213219982.stgit@devnote2
Signed-off-by: Masami Hiramatsu <mhiramat@kernel.org >
[ Removed extra blank line at end of bootconfig.c ]
Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org >
2020-01-13 13:19:39 -05:00