Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
e3-require
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Anders Lindh Olsson
e3-require
Commits
5ba7f167
Commit
5ba7f167
authored
3 years ago
by
Simon Rose
Browse files
Options
Downloads
Patches
Plain Diff
Allow for VAR_EXTENSIONS, not just T_A when specifying dependencies
parent
675fec27
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
require-ess/tools/driver.makefile
+8
-6
8 additions, 6 deletions
require-ess/tools/driver.makefile
with
8 additions
and
6 deletions
require-ess/tools/driver.makefile
+
8
−
6
View file @
5ba7f167
...
...
@@ -424,6 +424,11 @@ ifeq ($(filter O.%,$(notdir ${CURDIR})),)
# Target architecture defined.
# Still in source directory, third run.
# Add sources for specific epics types or architectures.
ARCH_PARTS
=
${
T_A
}
$(
subst -, ,
${
T_A
})
${
OS_CLASS
}
VAR_EXTENSIONS
=
${
EPICSVERSION
}
${
ARCH_PARTS
}
${
ARCH_PARTS:%
=
${
EPICSVERSION
}
_%
}
export
VAR_EXTENSIONS
# First, sort out all of the dependencies. This is done recursively using tools from https://github.com/markpiffer/gmtt.git
space
:=
$(
strip
)
$(
strip
)
#
comma
:=
,#
...
...
@@ -452,7 +457,9 @@ define fetch_module_versions
endif
endef
$(
foreach
m,
$(
patsubst %_DEP_VERSION,%,
$(
filter %_DEP_VERSION,
$(
.VARIABLES
)))
,
$(
eval
$(
call fetch_module_versions,
$m
)))
$(
foreach
m,
$(
patsubst %_DEP_VERSION_
$(
T_A
)
,%,
$(
filter %_DEP_VERSION_
$(
T_A
)
,
$(
.VARIABLES
)))
,
$(
eval
$(
call fetch_module_versions,
$m
,_
$(
T_A
))))
$(
foreach
x,
$(
VAR_EXTENSIONS
)
,
\
$(
foreach m,
$(
patsubst %_DEP_VERSION_
$(
x
)
,%,
$(
filter %_DEP_VERSION_
$(
x
)
,
$(
.VARIABLES
)))
,
$(
eval
$(
call fetch_module_versions,
$m
,_
$(
x
))))
\
)
# Fetches the data from .dep files to be parsed by the above
define
fetch_deps
...
...
@@ -512,11 +519,6 @@ install build debug:: O.${EPICSVERSION}_${T_A}
endif
# Add sources for specific epics types or architectures.
ARCH_PARTS
=
${
T_A
}
$(
subst -, ,
${
T_A
})
${
OS_CLASS
}
VAR_EXTENSIONS
=
${
EPICSVERSION
}
${
ARCH_PARTS
}
${
ARCH_PARTS:%
=
${
EPICSVERSION
}
_%
}
export
VAR_EXTENSIONS
REQ
+=
${
REQUIRED
}
$(
foreach x,
${
VAR_EXTENSIONS
}
,
${
REQUIRED_
$x
})
export
REQ
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment