Skip to content

Commit

Permalink
zipl_helper: rewrite helper in C
Browse files Browse the repository at this point in the history
This is the first step regarding issue ibm-s390-linux#5

Signed-off-by: Rafael Fonseca <[email protected]>
  • Loading branch information
r4f4 committed Nov 15, 2017
1 parent dcfcf0c commit d2228be
Show file tree
Hide file tree
Showing 3 changed files with 1,103 additions and 864 deletions.
7 changes: 5 additions & 2 deletions zipl/src/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,16 @@ libs = $(rootdir)/libutil/libutil.a \
objects = misc.o error.o scan.o job.o boot.o bootmap.o disk.o \
install.o zipl.o $(rootdir)/zipl/boot/data.o

zipl_helpers = $(wildcard zipl_helper.*)
zipl_helpers = $(basename $(wildcard zipl_helper.*))
chreipl_helpers = $(subst zipl_,chreipl_, $(zipl_helpers))

all: zipl $(chreipl_helpers)

zipl: $(objects) $(libs)

zipl_helper.device-mapper: $(rootdir)/libdasdview/libdasdview.a \
$(libs) zipl_helper.device-mapper.o

chreipl_helper.%: zipl_helper.%
ln -s $< $@

Expand All @@ -34,7 +37,7 @@ install: all
$(CP) --no-dereference $(chreipl_helpers) $(DESTDIR)$(TOOLS_LIBDIR)

clean:
rm -f *.o $(chreipl_helpers) zipl
rm -f *.o $(zipl_helpers) $(chreipl_helpers) zipl

.PHONY: all install clean

Expand Down
Loading

0 comments on commit d2228be

Please sign in to comment.