copperplate: sysregd: fix Makefile.am
A message that is not in the archive (sent off-list or not yet received): [email protected]
PATCH v2 1/1 copperplate: sysregd: fix Makefile.am
Settings in this Makefile.am are done without the sysregd_ prepend, differently from other tools (e.g. utils/corectl)
This also avoids following Yocto error:
do_package_qa: QA Issue: File /usr/sbin/sysregd in package xenomai doesn't have GNU_HASH (didn't pass LDFLAGS?) [ldflags]
--- lib/copperplate/regd/Makefile.am | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
lib/copperplate/regd/Makefile.am +3 -3
@@ -1,14 +1,14 @@ sbin_PROGRAMS = sysregd -CPPFLAGS = \ +sysregd_CPPFLAGS = \ @XENO_USER_CFLAGS@ \ @XENO_FUSE_CFLAGS@ \ -I$(top_srcdir)/lib \ -I$(top_srcdir)/include -LDFLAGS = $(XENO_POSIX_WRAPPERS) +sysregd_LDFLAGS = $(XENO_POSIX_WRAPPERS) -LDADD = \ +sysregd_LDADD = \ ../libcopperplate@[email protected] \ @XENO_CORE_LDADD@ \ @XENO_USER_LDADD@ \
Signature · 1 line
2.17.1
Quoted 3 lines · Mauro Salvini
Settings in this Makefile.am are done without the
sysregd_prepend, differently from other tools (e.g. utils/corectl)
Ok, in here seems to be the underlying reason:
https://www.gnu.org/software/automake/manual/html_node/Flag-Variables-Ordering.html
Summery:
"Thus, you should never redefine a user variable such as CPPFLAGS in Makefile.am."
Now, just for CPPFLAGS in utils:
utils/analogy/Makefile.am:CPPFLAGS = \
utils/autotune/Makefile.am:autotune_CPPFLAGS = \
utils/can/Makefile.am:AM_CPPFLAGS = \
utils/chkkconf/Makefile.am:chkkconf_CPPFLAGS = \
utils/corectl/Makefile.am:corectl_CPPFLAGS = \
utils/hdb/Makefile.am:hdb_CPPFLAGS = \
utils/net/Makefile.am:CPPFLAGS = -I$(top_srcdir)/kernel/drivers/net/stack/include
utils/ps/Makefile.am:CPPFLAGS = \
utils/slackspot/Makefile.am:CPPFLAGS = \
So there is more work to be done. Patches welcome!
Jan
Quoted 32 lines
This also avoids following Yocto error:
do_package_qa: QA Issue: File/usr/sbin/sysregdin package xenomai doesn't haveGNU_HASH(didn't pass LDFLAGS?) [ldflags]Signed-off-by Mauro Salvini <[email protected]>--- lib/copperplate/regd/Makefile.am | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)lib/copperplate/regd/Makefile.am +3
-3@@ -1,14 +1,14 @@ sbin_PROGRAMS = sysregd -CPPFLAGS = \ +sysregd_CPPFLAGS = \ @XENO_USER_CFLAGS@ \ @XENO_FUSE_CFLAGS@ \ -I$(top_srcdir)/lib \ -I$(top_srcdir)/include -LDFLAGS = $(XENO_POSIX_WRAPPERS) +sysregd_LDFLAGS = $(XENO_POSIX_WRAPPERS) -LDADD = \ +sysregd_LDADD = \ ../libcopperplate@[email protected] \ @XENO_CORE_LDADD@ \ @XENO_USER_LDADD@ \
Signature · 2 lines
Siemens AG, Technology Competence Center Embedded Linux