ifwitool: Add new tool for managing IFWI images
- Supports following operations: 1. add raw/dir sub-partition 2. extract raw/dir sub-partition 3. print info 4. delete raw sub-partition 5. replace raw/dir sub-partition Change-Id: I683a0ab13cc50eb60eecca34db4a8ffefc8dccbd Signed-off-by: Furquan Shaikh <furquan@google.com> Reviewed-on: https://review.coreboot.org/14896 Tested-by: build bot (Jenkins) Reviewed-by: Aaron Durbin <adurbin@chromium.org>
This commit is contained in:
parent
97d56fa1a2
commit
233f1b6a38
|
@ -10,6 +10,7 @@ OBJCOPY ?= objcopy
|
|||
all: $(objutil)/cbfstool/cbfstool \
|
||||
$(objutil)/cbfstool/fmaptool \
|
||||
$(objutil)/cbfstool/rmodtool \
|
||||
$(objutil)/cbfstool/ifwitool \
|
||||
|
||||
.PHONY: clean
|
||||
clean:
|
||||
|
@ -17,6 +18,7 @@ clean:
|
|||
$(RM) $(objutil)/cbfstool/cbfstool $(cbfsobj)
|
||||
$(RM) $(objutil)/cbfstool/fmaptool $(fmapobj)
|
||||
$(RM) $(objutil)/cbfstool/rmodtool $(rmodobj)
|
||||
$(RM) $(objutil)/cbfstool/ifwitool $(ifwiobj)
|
||||
|
||||
linux_trampoline.c: linux_trampoline.S
|
||||
rm -f linux_trampoline.c
|
||||
|
|
|
@ -58,6 +58,10 @@ rmodobj += common.o
|
|||
rmodobj += elfheaders.o
|
||||
rmodobj += xdr.o
|
||||
|
||||
ifwiobj :=
|
||||
ifwiobj += ifwitool.o
|
||||
ifwiobj += common.o
|
||||
|
||||
TOOLCFLAGS ?= -Werror -Wall -Wextra
|
||||
TOOLCFLAGS += -Wcast-qual -Wmissing-prototypes -Wredundant-decls -Wshadow
|
||||
TOOLCFLAGS += -Wstrict-prototypes -Wwrite-strings
|
||||
|
@ -132,6 +136,10 @@ $(objutil)/cbfstool/rmodtool: $(addprefix $(objutil)/cbfstool/,$(rmodobj))
|
|||
printf " HOSTCC $(subst $(objutil)/,,$(@)) (link)\n"
|
||||
$(HOSTCC) $(TOOLLDFLAGS) -o $@ $(addprefix $(objutil)/cbfstool/,$(rmodobj))
|
||||
|
||||
$(objutil)/cbfstool/ifwitool: $(addprefix $(objutil)/cbfstool/,$(ifwiobj))
|
||||
printf " HOSTCC $(subst $(objutil)/,,$(@)) (link)\n"
|
||||
$(HOSTCC) $(TOOLLDFLAGS) -o $@ $(addprefix $(objutil)/cbfstool/,$(ifwiobj))
|
||||
|
||||
# Yacc source is superset of header
|
||||
$(objutil)/cbfstool/fmd.o: TOOLCFLAGS += -Wno-redundant-decls
|
||||
$(objutil)/cbfstool/fmd_parser.o: TOOLCFLAGS += -Wno-redundant-decls
|
||||
|
|
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue