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

updated project setup

parent 23533d6e
Loading
Loading
Loading
Loading
+5 −2
Original line number Diff line number Diff line
html/*
*.o
attic/*
/.project
/.cproject
@@ -9,3 +9,6 @@ attic/*
generated*
sysroots
bitbake-logs
autocampars
launch_php_script
temp
+2 −2
Original line number Diff line number Diff line
@@ -64,7 +64,7 @@ int main (int argc, char *argv[]) {
    char sport[10];
    int port = 0;
    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);
    }
    port = strtol(argv[1], NULL,10) & 3;
@@ -76,7 +76,7 @@ int main (int argc, char *argv[]) {
        ELP_FERR(fprintf(stderr, "Open failed: (%s)\n", framepars_driver_name[port]));
        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
    /// 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)
+8 −0
Original line number Diff line number Diff line
<?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>
+10 −0
Original line number Diff line number Diff line
@@ -11,6 +11,16 @@
			<arguments>
			</arguments>
		</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>
	<natures>
		<nature>org.eclipse.cdt.core.cnature</nature>
+1 −1
Original line number Diff line number Diff line
@@ -47,7 +47,7 @@ int main (int argc, char *argv[]) {
            "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"
            "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"
            "%s <sensor_port> <bit_number> <command> [<parameter>...]\n",argv[0]);
            exit (1);