Commit 6b3717de authored by Andrey Filippov's avatar Andrey Filippov

updated project setup

parent 23533d6e
html/* *.o
attic/* attic/*
/.project /.project
/.cproject /.cproject
...@@ -9,3 +9,6 @@ attic/* ...@@ -9,3 +9,6 @@ attic/*
generated* generated*
sysroots sysroots
bitbake-logs bitbake-logs
autocampars
launch_php_script
temp
...@@ -64,7 +64,7 @@ int main (int argc, char *argv[]) { ...@@ -64,7 +64,7 @@ int main (int argc, char *argv[]) {
char sport[10]; char sport[10];
int port = 0; int port = 0;
if (argc <2){ if (argc <2){
ELP_FERR(fprintf(stderr, "Sensor porft not provided (%s)\n", argv[0])); ELP_FERR(fprintf(stderr, "Sensor port not provided (%s)\n", argv[0]));
exit (1); exit (1);
} }
port = strtol(argv[1], NULL,10) & 3; port = strtol(argv[1], NULL,10) & 3;
...@@ -76,7 +76,7 @@ int main (int argc, char *argv[]) { ...@@ -76,7 +76,7 @@ int main (int argc, char *argv[]) {
ELP_FERR(fprintf(stderr, "Open failed: (%s)\n", framepars_driver_name[port])); ELP_FERR(fprintf(stderr, "Open failed: (%s)\n", framepars_driver_name[port]));
exit (1); exit (1);
} }
///TODO: Use it to re-running ccamftp.php ///TODO: Use it to re-run ccamftp.php
/// see if any arguments are provided. If they are - they are bit number, sleep time in seconds and command/arguments of an external program /// see if any arguments are provided. If they are - they are bit number, sleep time in seconds and command/arguments of an external program
/// to be launched. Usually - a php script, so it makes sense not to keep the php instance in memory if it is not used most of the time /// to be launched. Usually - a php script, so it makes sense not to keep the php instance in memory if it is not used most of the time
/// (done so for ccamftp.php) /// (done so for ccamftp.php)
......
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<launchConfiguration type="org.eclipse.ui.externaltools.ProgramBuilderLaunchConfigurationType">
<booleanAttribute key="org.eclipse.debug.ui.ATTR_LAUNCH_IN_BACKGROUND" value="false"/>
<stringAttribute key="org.eclipse.ui.externaltools.ATTR_LOCATION" value="${workspace_loc:/elphel-apps-autocampars/run_bitbake.sh}"/>
<stringAttribute key="org.eclipse.ui.externaltools.ATTR_RUN_BUILD_KINDS" value="full,incremental,"/>
<stringAttribute key="org.eclipse.ui.externaltools.ATTR_TOOL_ARGUMENTS" value="apps-autocampars -c target_scp -f"/>
<booleanAttribute key="org.eclipse.ui.externaltools.ATTR_TRIGGERS_CONFIGURED" value="true"/>
</launchConfiguration>
...@@ -11,6 +11,16 @@ ...@@ -11,6 +11,16 @@
<arguments> <arguments>
</arguments> </arguments>
</buildCommand> </buildCommand>
<buildCommand>
<name>org.eclipse.ui.externaltools.ExternalToolBuilder</name>
<triggers>full,incremental,</triggers>
<arguments>
<dictionary>
<key>LaunchConfigHandle</key>
<value>&lt;project&gt;/.externalToolBuilders/SCP apps-autocampars to target.launch</value>
</dictionary>
</arguments>
</buildCommand>
</buildSpec> </buildSpec>
<natures> <natures>
<nature>org.eclipse.cdt.core.cnature</nature> <nature>org.eclipse.cdt.core.cnature</nature>
......
...@@ -47,7 +47,7 @@ int main (int argc, char *argv[]) { ...@@ -47,7 +47,7 @@ int main (int argc, char *argv[]) {
"with optional parameters, blocking itself until the script terminates.\n\n" "with optional parameters, blocking itself until the script terminates.\n\n"
" After that it sleeps again until the bit is reenabled (normally script exits\n" " After that it sleeps again until the bit is reenabled (normally script exits\n"
"when this bit is cleared) and launches the script again. That reduces memory usage\n" "when this bit is cleared) and launches the script again. That reduces memory usage\n"
"when the script is disabled - no need to keep PHP interpreter in teh memory (>2MB)\n\n" "when the script is disabled - no need to keep PHP interpreter in the memory (>2MB)\n\n"
"Usage:\n" "Usage:\n"
"%s <sensor_port> <bit_number> <command> [<parameter>...]\n",argv[0]); "%s <sensor_port> <bit_number> <command> [<parameter>...]\n",argv[0]);
exit (1); exit (1);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment