Date: Fri, 21 May 2021 13:34:50 GMT From: Marcin Wojtas <mw@FreeBSD.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org Subject: git: 7c8d38112da7 - main - Add afterbuild target to bsd.prog.mk. Message-ID: <202105211334.14LDYo6F004294@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
The branch main has been updated by mw: URL: https://cgit.FreeBSD.org/src/commit/?id=7c8d38112da7bddb5ebd93cb9613acfb16456dc1 commit 7c8d38112da7bddb5ebd93cb9613acfb16456dc1 Author: Marcin Wojtas <mw@FreeBSD.org> AuthorDate: 2021-05-21 09:23:42 +0000 Commit: Marcin Wojtas <mw@FreeBSD.org> CommitDate: 2021-05-21 13:32:29 +0000 Add afterbuild target to bsd.prog.mk. Afterbuild target allows to perform operations on fully built binary. This is needed to allow for ELF feature flags modification during world build. Submitted by: Dawid Gorecki <dgr@semihalf.com> Reviewed by: imp Obtained from: Semihalf Sponsored by: Stormshield Differential Revision: https://reviews.freebsd.org/D29551 --- share/mk/bsd.prog.mk | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/share/mk/bsd.prog.mk b/share/mk/bsd.prog.mk index 44a774957cfb..89eddb24abb0 100644 --- a/share/mk/bsd.prog.mk +++ b/share/mk/bsd.prog.mk @@ -232,7 +232,12 @@ MAN1= ${MAN} .if defined(_SKIP_BUILD) all: .else +.if target(afterbuild) +.ORDER: ${PROG} afterbuild +all: ${PROG} ${SCRIPTS} afterbuild +.else all: ${PROG} ${SCRIPTS} +.endif .if ${MK_MAN} != "no" all: all-man .endif
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202105211334.14LDYo6F004294>