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
c9bcf8b4
Commit
c9bcf8b4
authored
3 years ago
by
Simon Rose
Browse files
Options
Downloads
Patches
Plain Diff
Draft .db file expander
parent
b530967c
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
configure/modules/RULES_E3
+4
-1
4 additions, 1 deletion
configure/modules/RULES_E3
configure/modules/RULES_INFLATING_DB
+0
-11
0 additions, 11 deletions
configure/modules/RULES_INFLATING_DB
require-ess/tools/driver.makefile
+26
-6
26 additions, 6 deletions
require-ess/tools/driver.makefile
with
30 additions
and
18 deletions
configure/modules/RULES_E3
+
4
−
1
View file @
c9bcf8b4
...
...
@@ -31,7 +31,7 @@ help:
## Install current module to $(EPICS_BASE)/require/$(E3_REQUIRE_VERSION)/siteMods
install: install_module install_links
install_module: build db
install_module: build db
_internal
$(QUIET) $(E3_MODULE_MAKE_CMDS) install
## Uninstall the current module
...
...
@@ -50,6 +50,9 @@ prebuild: conf
debug: conf
$(QUIET) $(E3_MODULE_MAKE_CMDS) debug
db_internal: conf
$(QUIET) $(E3_MODULE_MAKE_CMDS) db_internal
## Clean, build, and install the current module
rebuild: clean build install
...
...
This diff is collapsed.
Click to expand it.
configure/modules/RULES_INFLATING_DB
deleted
100644 → 0
+
0
−
11
View file @
b530967c
db: $(SUBS)
$(SUBS):
@printf "Inflating database ... %44s >>> %40s \n" "$@" "$(basename $(@)).db"
@rm -f $(basename $(@)).db.d $(basename $(@)).db
@$(MSI) -D $(USR_DBFLAGS) -o $(basename $(@)).db -S $@ > $(basename $(@)).db.d
@$(MSI) $(USR_DBFLAGS) -o $(basename $(@)).db -S $@
.PHONY: db $(SUBS)
This diff is collapsed.
Click to expand it.
require-ess/tools/driver.makefile
+
26
−
6
View file @
c9bcf8b4
...
...
@@ -196,6 +196,10 @@ export ${PRJ}_E3_GIT_DESC
${PRJ}_E3_GIT_STATUS
:=
$(${
PROJECT
}
_E3_GIT_STATUS
)
export
${PRJ}_E3_GIT_STATUS
export
SUBS
export
TMPS
export
USR_DBFLAGS
# Some shell commands:
RMDIR
=
rm
-rf
LN
=
ln
-s
...
...
@@ -261,7 +265,7 @@ debug::
# Loop over all EPICS versions for second run.
MAKEVERSION
=
${
MAKE
}
-f
${
USERMAKEFILE
}
LIBVERSION
=
${
LIBVERSION
}
build install debug
::
${IGNOREFILES}
build install debug
db_internal
::
${IGNOREFILES}
@
+for VERSION
in
${
BUILD_EPICS_VERSIONS
};
do
${
MAKEVERSION
}
EPICSVERSION
=
$$
VERSION
$@
;
done
#build: ${IGNOREFILES}
...
...
@@ -360,6 +364,9 @@ CXXCMPLR=ANSI
G++
_ANSI
=
$(
G++
)
-ansi
OBJ
=
.o
O.%
:
+
$(
MKDIR
)
$@
ifndef
T_A
## RUN 2
# Target achitecture not yet defined
...
...
@@ -448,13 +455,29 @@ debug::
@
echo
"LIBVERSION =
${
LIBVERSION
}
"
# Loop over all architectures.
install build debug
::
install build debug
::
$(COMMON_DIR)
@
+failed_builds
=
0
;
\
for
ARCH
in
${
CROSS_COMPILER_TARGET_ARCHS
};
do
\
umask
002
;
echo
MAKING ARCH
$$
ARCH
;
${
MAKE
}
-f
${
USERMAKEFILE
}
T_A
=
$$
ARCH
$@
||
((
failed_builds++
))
;
\
done
;
\
((
failed_builds
==
0
))
db_internal
:
$(COMMON_DIR)
define
SUBS_EXPAND
vpath
$(
notdir
$1
)
$(
dir
$1
)
$(COMMON_DIR)/$(notdir $(basename $1).db)
:
$(notdir $1)
@
printf
"Inflating database ... %44s >>> %40s
\n
"
"
$$
^"
"
$$
@"
$(
MSI
)
-D
$(
USR_DBFLAGS
)
-o
$(
COMMON_DIR
)
/
$$(
notdir
$$(
basename
$1
)
.db
)
$2
$$
^
>
$(
COMMON_DIR
)
/
$$(
notdir
$$(
basename
$1
)
.db
)
.d
$(
MSI
)
$(
USR_DBFLAGS
)
-o
$(
COMMON_DIR
)
/
$$(
notdir
$$(
basename
$1
)
.db
)
$2
$$
^
db_internal
:
$(COMMON_DIR)/$(notdir $(basename $1).db)
endef
$(
foreach
file,
$(
SUBS
)
,
$(
eval
$(
call SUBS_EXPAND,
$(
file
)
,-S
)))
$(
foreach
file,
$(
TMPS
)
,
$(
eval
$(
call SUBS_EXPAND,
$(
file
)
,
)))
else
# T_A
ifeq
($(filter O.%,$(notdir ${CURDIR})),)
...
...
@@ -480,9 +503,6 @@ install build:
else
O.%
:
+
$(
MKDIR
)
$@
ifeq
($(shell echo "${LIBVERSION}" | grep -v -E "^$(VERSIONREGEX)\$$"),)
install
::
build
@
test
!
-d
${
MODULE_LOCATION
}
/lib/
${
T_A
}
||
\
...
...
@@ -494,7 +514,7 @@ install:: build
$(
RMDIR
)
${
MODULE_LOCATION
}
/lib/
${
T_A
}
)
endif
install build debug
::
O.${EPICSVERSION}_Common
O.${EPICSVERSION}_${T_A}
install build debug
::
O.${EPICSVERSION}_${T_A}
@${
MAKE
}
-C
O.
${
EPICSVERSION
}
_
${
T_A
}
-f
../
${
USERMAKEFILE
}
$@
endif
...
...
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