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 20, 2017
1 parent eb11824 commit 4fdd3ac
Show file tree
Hide file tree
Showing 3 changed files with 1,127 additions and 864 deletions.
8 changes: 6 additions & 2 deletions zipl/src/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,17 @@ 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)/libdasd/libdasd.a \
$(rootdir)/libvtoc/libvtoc.a \
$(libs) zipl_helper.device-mapper.o

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

Expand All @@ -34,7 +38,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 4fdd3ac

Please sign in to comment.