mirror of
https://github.com/ibm-s390-linux/s390-tools.git
synced 2026-08-05 02:14:52 +00:00
lsmem/chmem moved to util-linux >= 2.30, remove them from s390-tools. For kernels >= 4.13, the default memory zone for hotplug memory was changed from zone MOVABLE to zone NORMAL. In order to keep using zone MOVABLE for memory hotplug, either use the lsmem/chmem tools from s390-tools version 2.1.0, or an updated version of the util-linux version of lsmem/chmem that contains the following util-linux git commits (included in util-linux 2.32): 60a7e9e94e49 "lsmem/chmem: add memory zone awareness" 0a4320f5e785 "tests/lsmem: update lsmem test with ZONES column" afee3f204247 "lsmem/chmem: add memory zone awareness to bash-completion" Signed-off-by: Gerald Schaefer <gerald.schaefer@de.ibm.com> Signed-off-by: Michael Holzheu <holzheu@linux.vnet.ibm.com>
66 lines
2.0 KiB
Makefile
66 lines
2.0 KiB
Makefile
#==============================================================================
|
|
# Makefile for zSeries configuration utilities.
|
|
#==============================================================================
|
|
include ../common.mak
|
|
|
|
SCRIPTS = lsdasd lstape chccwdev lszfcp cio_ignore znetconf dasdstat
|
|
USRSBIN_SCRIPTS = lsluns
|
|
MANPAGES= lsdasd.8 lstape.8 chccwdev.8 lszfcp.8 lsluns.8 \
|
|
cio_ignore.8 znetconf.8 dasdstat.8
|
|
|
|
SUB_DIRS = zcrypt scm chp css qeth
|
|
|
|
all: $(SUB_DIRS)
|
|
|
|
clean: $(SUB_DIRS)
|
|
|
|
install: install-scripts install-manpages install-usrsbin-scripts $(SUB_DIRS)
|
|
$(INSTALL) -g $(GROUP) -o $(OWNER) -m 755 lsznet.raw \
|
|
$(DESTDIR)$(TOOLS_LIBDIR)
|
|
$(INSTALL) -g $(GROUP) -o $(OWNER) -m 755 znetcontrolunits \
|
|
$(DESTDIR)$(TOOLS_LIBDIR)
|
|
|
|
install-scripts: $(SCRIPTS)
|
|
@for i in $^; do \
|
|
cat $$i | \
|
|
sed -e 's+%S390_TOOLS_VERSION%+$(S390_TOOLS_RELEASE)+' \
|
|
>$(DESTDIR)$(BINDIR)/$$i; \
|
|
chown $(OWNER).$(GROUP) $(DESTDIR)$(BINDIR)/$$i; \
|
|
chmod 755 $(DESTDIR)$(BINDIR)/$$i; \
|
|
done
|
|
|
|
install-usrsbin-scripts: $(USRSBIN_SCRIPTS)
|
|
@for i in $^; do \
|
|
cat $$i | \
|
|
sed -e 's+%S390_TOOLS_VERSION%+$(S390_TOOLS_RELEASE)+' \
|
|
>$(DESTDIR)$(USRSBINDIR)/$$i; \
|
|
chown $(OWNER).$(GROUP) $(DESTDIR)$(USRSBINDIR)/$$i; \
|
|
chmod 755 $(DESTDIR)$(USRSBINDIR)/$$i; \
|
|
done
|
|
|
|
install-manpages: $(MANPAGES)
|
|
@if [ ! -d $(DESTDIR)$(MANDIR) ]; then \
|
|
mkdir -p $(DESTDIR)$(MANDIR)/man8; \
|
|
chown $(OWNER).$(GROUP) $(DESTDIR)$(MANDIR); \
|
|
chown $(OWNER).$(GROUP) $(DESTDIR)$(MANDIR)/man8; \
|
|
chmod 755 $(DESTDIR)$(MANDIR); \
|
|
chmod 755 $(DESTDIR)$(MANDIR)/man8; \
|
|
fi; \
|
|
for i in $^; do \
|
|
install -o $(OWNER) -g $(GROUP) -m 644 $$i $(DESTDIR)$(MANDIR)/man8; \
|
|
done
|
|
|
|
#
|
|
# For simple "make" we explicitly set the MAKECMDGOALS to "all".
|
|
#
|
|
ifeq ($(MAKECMDGOALS),)
|
|
MAKECMDGOALS = all
|
|
endif
|
|
|
|
$(SUB_DIRS):
|
|
$(foreach goal,$(MAKECMDGOALS), \
|
|
$(MAKE) -C $@ TOPDIR=$(TOPDIR) ARCH=$(ARCH) $(goal) ;)
|
|
.PHONY: $(SUB_DIRS)
|
|
|
|
.PHONY: all install clean install-scripts install-manpages install-usrsbin-scripts
|