forked from rosa/hakurei
internal/rosa/package: db
For iproute2. Signed-off-by: Ophestra <cat@gensokyo.uk>
This commit is contained in:
@@ -28,6 +28,8 @@ type MakeHelper struct {
|
||||
SkipConfigure bool
|
||||
// Alternative name for the configure script.
|
||||
ConfigureName string
|
||||
// Add autoconf arguments regardless of ConfigureName.
|
||||
ForceAutoconf bool
|
||||
// Flags passed to the configure script.
|
||||
Configure []KV
|
||||
// Host target triple, zero value is equivalent to the Rosa OS triple.
|
||||
@@ -100,9 +102,11 @@ func (attr *MakeHelper) script(t Toolchain, name string) string {
|
||||
if !attr.SkipConfigure {
|
||||
configure = attr.ConfigureName
|
||||
if configure == "" {
|
||||
configure += `/usr/src/` + name + `/configure \
|
||||
configure += `/usr/src/` + name + `/configure`
|
||||
}
|
||||
if attr.ForceAutoconf || attr.ConfigureName == "" {
|
||||
configure += ` \
|
||||
--prefix=/system`
|
||||
|
||||
host := `"${ROSA_TRIPLE}"`
|
||||
if attr.Host != "" {
|
||||
host = attr.Host
|
||||
|
||||
Reference in New Issue
Block a user