-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
Test `makeBaseApp.pl` example ioc
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
diff --git a/simpleApp/Db/Makefile b/simpleApp/Db/Makefile | ||
index 8eb9727..ea49598 100644 | ||
--- a/simpleApp/Db/Makefile | ||
+++ b/simpleApp/Db/Makefile | ||
@@ -6,7 +6,7 @@ include $(TOP)/configure/CONFIG | ||
#---------------------------------------------------- | ||
# Create and install (or just install) into <top>/db | ||
# databases, templates, substitutions like this | ||
-#DB += xxx.db | ||
+DB += simple.db | ||
|
||
#---------------------------------------------------- | ||
# If <anyname>.db template is not named <anyname>*.template add |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
diff --git a/iocBoot/iocSimple/st.cmd b/iocBoot/iocSimple/st.cmd | ||
index abda300..0d162ac 100644 | ||
--- a/iocBoot/iocSimple/st.cmd | ||
+++ b/iocBoot/iocSimple/st.cmd | ||
@@ -10,7 +10,7 @@ dbLoadDatabase "../../dbd/simple.dbd" | ||
simple_registerRecordDeviceDriver(pdbbase) | ||
|
||
## Load record instances | ||
-#dbLoadRecords("../../db/simple.db","user=epnix") | ||
+dbLoadRecords("../../db/simple.db","user=epnix") | ||
|
||
iocInit() | ||
|
||
diff --git a/simpleApp/Db/Makefile b/simpleApp/Db/Makefile | ||
index 8eb9727..ea49598 100644 | ||
--- a/simpleApp/Db/Makefile | ||
+++ b/simpleApp/Db/Makefile | ||
@@ -6,7 +6,7 @@ include $(TOP)/configure/CONFIG | ||
#---------------------------------------------------- | ||
# Create and install (or just install) into <top>/db | ||
# databases, templates, substitutions like this | ||
-#DB += xxx.db | ||
+DB += simple.db | ||
|
||
#---------------------------------------------------- | ||
# If <anyname>.db template is not named <anyname>*.template add |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
releaseBranch: {pkgs, ...}: { | ||
epnix = { | ||
meta.name = "checks-default-ioc"; | ||
buildConfig.src = | ||
pkgs.runCommand "default-top" { | ||
nativeBuildInputs = [pkgs.epnix.epics-base]; | ||
} '' | ||
mkdir $out | ||
cd $out | ||
makeBaseApp.pl -u epnix -t ioc simple | ||
makeBaseApp.pl -u epnix -t ioc -i -a linux-x86_64 -p simple Simple | ||
''; | ||
|
||
buildConfig.attrs = { | ||
patches = [./default-top-${releaseBranch}.patch]; | ||
postPatch = '' | ||
cp ${./simple.db} simpleApp/Db/simple.db | ||
''; | ||
}; | ||
|
||
epics-base.releaseBranch = releaseBranch; | ||
|
||
nixos.services.ioc = { | ||
app = "simple"; | ||
ioc = "iocSimple"; | ||
}; | ||
}; | ||
} |
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.