diff options
author | Matt Turner <mattst88@gmail.com> | 2020-04-06 13:27:16 -0700 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2020-05-13 15:26:29 -0700 |
commit | 39836b3d2580f6785e675e07571053bca3f0551c (patch) | |
tree | 83dd6b0a0ecfa83e527455e85b4ee2c330f15be9 | |
parent | fcf8ffb4fba3ea72353c111ab7dc210eaae89223 (diff) | |
download | silo-39836b3d2580f6785e675e07571053bca3f0551c.tar.gz |
silo: Allow building tilo only
The bootloader bits are built as 32-bit, which can be difficult to do on
a system with a 64-bit userland since they include system headers.
Specifically, the inclusion of <gnu/stubs-32.h> is problematic since
this header is not provided on a non-multilib build of glibc.
<gnu/stubs-32.h>, included by
<gnu/stubs.h>, included by
<features.h>, included by
<elf.h> and <setjmp.h>
tilo is built for the host machine and doesn't have this problem.
Signed-off-by: Matt Turner <mattst88@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r-- | Makefile | 14 |
1 files changed, 12 insertions, 2 deletions
@@ -3,27 +3,37 @@ include Rules.make # These only get built on Linux ifeq ($(OPSYS),Linux) - SUBDIRS = common first second first-isofs tilo +ifneq ($(TILO_ONLY),yes) + SUBDIRS = common first second first-isofs +endif + SUBDIRS += tilo MANPAGES = maketilo.1 tilo.1 endif +ifneq ($(TILO_ONLY),yes) # These get built on Linux and Solaris MANPAGES += silo.8 silo.conf.5 SUBDIRS += silo +endif all dep depend clean: @for I in $(SUBDIRS); do $(MAKE) -C $$I $@ || exit 1; done ifeq ($(OPSYS),$(findstring $(OPSYS),Linux Solaris)) install: +ifneq ($(TILO_ONLY),yes) install -d -m755 $(DESTDIR)/etc $(DESTDIR)/sbin $(DESTDIR)/usr/sbin install -m755 silo/silo $(DESTDIR)/sbin install -m755 silo/silocheck $(DESTDIR)/usr/sbin [ -f $(DESTDIR)/etc/silo.conf ] || \ install -m644 etc/silo.conf $(DESTDIR)/etc/ +endif ifeq ($(OPSYS),Linux) - install -d -m755 $(DESTDIR)/boot $(DESTDIR)/usr/bin +ifneq ($(TILO_ONLY),yes) + install -d -m755 $(DESTDIR)/boot install -m644 first/*.b second/*.b first-isofs/*.b $(DESTDIR)/boot/ +endif + install -d -m755 $(DESTDIR)/usr/bin install -m755 tilo/maketilo $(DESTDIR)/usr/bin/ install -m755 tilo/tilo.sh $(DESTDIR)/usr/bin/tilo endif |