mirror of
https://github.com/ibm-s390-linux/s390-tools.git
synced 2026-08-05 02:14:52 +00:00
Added a tool to operate with zIPL environment, currently installed in the boot record. All modifying operations result in atomic update of the installed environment block, bypassing the file system driver. Operations currently supported by zIPL environment editor: . set/unset environment variables, . print/reset environment Reviewed-by: Stefan Haberland <sth@linux.ibm.com> Reviewed-by: Peter Oberparleiter <oberpar@linux.ibm.com> Signed-off-by: Eduard Shishkin <edward6@linux.ibm.com> Signed-off-by: Jan Höppner <hoeppner@linux.ibm.com>
59 lines
1.6 KiB
Makefile
59 lines
1.6 KiB
Makefile
# Common definitions
|
|
include ../../common.mak
|
|
|
|
ALL_CPPFLAGS += -I../include -I../boot \
|
|
-DZFCPDUMP_IMAGE="STRINGIFY($(ZFCPDUMP_DIR)/$(ZFCPDUMP_IMAGE))" \
|
|
-DZFCPDUMP_INITRD="STRINGIFY($(ZFCPDUMP_DIR)/$(ZFCPDUMP_INITRD))" \
|
|
-D_FILE_OFFSET_BITS=64 $(NO_PIE_CFLAGS)
|
|
ALL_LDFLAGS += -Wl,-z,noexecstack $(NO_PIE_LDFLAGS)
|
|
|
|
libs = $(rootdir)/libutil/libutil.a
|
|
|
|
objects = misc.o error.o scan.o job.o boot.o bootmap.o fs-map.o disk.o \
|
|
bootmap_header.o envblk.o install.o zipl.o $(rootdir)/zipl/boot/data.o
|
|
|
|
zipl_helpers = $(basename $(wildcard zipl_helper.*.c))
|
|
chreipl_helpers = $(subst zipl_,chreipl_, $(zipl_helpers))
|
|
zipl_stage3 = ../boot/stage3.bin
|
|
|
|
all: zipl zipl-editenv $(chreipl_helpers) $(zipl_stage3)
|
|
|
|
zipl: $(objects) $(libs)
|
|
|
|
zipl_helper.device-mapper: $(rootdir)/libdasd/libdasd.a \
|
|
$(rootdir)/libvtoc/libvtoc.a \
|
|
$(libs) zipl_helper.device-mapper.o
|
|
|
|
zipl-editenv: $(libs) misc.o error.o fs-map.o bootmap_header.o \
|
|
envblk.o zipl-editenv.o
|
|
|
|
chreipl_helper.%: zipl_helper.%
|
|
ln -f -s $< $@
|
|
|
|
install: all
|
|
$(INSTALL) -d -m 755 $(DESTDIR)$(BINDIR)
|
|
$(INSTALL) -c zipl $(DESTDIR)$(BINDIR)
|
|
$(INSTALL) -c zipl-editenv $(DESTDIR)$(BINDIR)
|
|
$(INSTALL) -m 755 $(zipl_helpers) $(chreipl_helpers) \
|
|
$(DESTDIR)$(TOOLS_LIBDIR)
|
|
$(CP) --no-dereference $(chreipl_helpers) $(DESTDIR)$(TOOLS_LIBDIR)
|
|
$(CP) --no-dereference $(zipl_stage3) $(DESTDIR)$(TOOLS_LIBDIR)
|
|
|
|
clean:
|
|
rm -f *.o $(zipl_helpers) $(chreipl_helpers) zipl zipl-editenv
|
|
|
|
.PHONY: all install clean
|
|
|
|
# Additional manual dependencies
|
|
|
|
.boot.o.d boot.o: ../boot/data.h
|
|
|
|
../boot/data.h:
|
|
$(MAKE) -C ../boot data.h
|
|
|
|
../boot/data.o:
|
|
$(MAKE) -C ../boot data.o
|
|
|
|
../boot/stage3.bin:
|
|
$(MAKE) -C ../boot stage3.bin
|