Skip to content

Commit 0f4837b

Browse files
besser82solardiz
authored andcommitted
make: Add an option to omit the PAM module during build and install.
This may be needed in distribution packages when preparing a bootstrap environment for new architectures. Signed-off-by: Björn Esser <[email protected]>
1 parent a50195c commit 0f4837b

File tree

3 files changed

+15
-0
lines changed

3 files changed

+15
-0
lines changed

ChangeLog

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,13 @@
66
applications to be TCB aware easier.
77
* libs/libtcb.map: Declare version for exported symbols.
88

9+
Add an option to omit the PAM module during build and install.
10+
This may be needed in distribution packages when preparing a
11+
bootstrap environment for new architectures.
12+
* Make.defs: Add OMIT_PAM_MODULE flag.
13+
* Makefile: Do not build/install the pam module if the
14+
OMIT_PAM_MODULE flag is set.
15+
916
* pam_tcb/Makefile: Move PAM_SO_SUFFIX to Make.defs.
1017
* Make.defs: Likewise.
1118

Make.defs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@ MKDIR = mkdir
55
# Flag to enable -Werror on build.
66
WERROR =
77

8+
# Option to omit the PAM module during build and installation.
9+
# May be needed when bootstrapping new architectures.
10+
OMIT_PAM_MODULE =
11+
812
# Option to configure the suffix appended to pam_tcb.so.
913
# May be needed when compiling to use with OpenPAM.
1014
PAM_SO_SUFFIX =

Makefile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,12 @@
1+
include ./Make.defs
2+
13
all install install-non-root clean:
24
$(MAKE) -C misc $@
35
$(MAKE) -C libs $@
46
$(MAKE) -C progs $@
7+
ifeq ($(OMIT_PAM_MODULE),)
58
$(MAKE) -C pam_tcb $@
9+
endif
610

711
install-pam_unix install-pam_pwdb:
812
$(MAKE) -C pam_tcb $@

0 commit comments

Comments
 (0)