mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-12-18 16:44:27 +08:00
950313ebf7
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>
21 lines
376 B
Makefile
21 lines
376 B
Makefile
# SPDX-License-Identifier: GPL-2.0
|
|
# Makefile for bootconfig command
|
|
|
|
bindir ?= /usr/bin
|
|
|
|
HEADER = include/linux/bootconfig.h
|
|
CFLAGS = -Wall -g -I./include
|
|
|
|
PROGS = bootconfig
|
|
|
|
all: $(PROGS)
|
|
|
|
bootconfig: ../../lib/bootconfig.c main.c $(HEADER)
|
|
$(CC) $(filter %.c,$^) $(CFLAGS) -o $@
|
|
|
|
install: $(PROGS)
|
|
install bootconfig $(DESTDIR)$(bindir)
|
|
|
|
clean:
|
|
$(RM) -f *.o bootconfig
|