New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Define TARGET_PREFIX to use with grub2 deployment #760
Conversation
Makefile.am
Outdated
@@ -48,6 +48,8 @@ endif | |||
|
|||
EXTRA_DIST += autogen.sh COPYING README.md | |||
|
|||
DEFS += -DTARGET_PREFIX="\"$(prefix)\"" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Huh, I'd never heard of DEFS
before. Let's instead add to AM_CPPFLAGS
, since we use that above this for very similar things like -DDATADIR='"$(datadir)"'
.
Makefile.am
Outdated
@@ -24,7 +24,7 @@ OSTREE_GITREV=$(shell if command -v git >/dev/null 2>&1 && test -d $(srcdir)/.gi | |||
ACLOCAL_AMFLAGS = -I buildutil -I libglnx ${ACLOCAL_FLAGS} | |||
AM_CPPFLAGS += -DDATADIR='"$(datadir)"' -DLIBEXECDIR='"$(libexecdir)"' \ | |||
-DLOCALEDIR=\"$(datadir)/locale\" -DSYSCONFDIR=\"$(sysconfdir)\" \ | |||
-DSHORTENED_SYSCONFDIR=\"$(shortened_sysconfdir)\" \ | |||
-DTARGET_PREFIX='"$(prefix)' -DSHORTENED_SYSCONFDIR=\"$(shortened_sysconfdir)\" \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Closing quote is probably missing. I'll check if it works for me.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yep, pushed another fixup ⬇️ - let me know if it works for you.
@cgwalters Works fine, thank you. |
☀️ Test successful - status-atomicjenkins |
Hardcoded path to ostree-grub-generator breaks workwlow with prefixes other that /usr.