Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
E
elphel-apps-autocampars
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Elphel
elphel-apps-autocampars
Commits
f49906b2
Commit
f49906b2
authored
Nov 02, 2016
by
Andrey Filippov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
moved sources to src
parent
e45e6775
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
84 additions
and
47 deletions
+84
-47
.gitignore
.gitignore
+3
-0
Makefile
Makefile
+26
-46
Makefile
src/Makefile
+54
-0
autocampars.c
src/autocampars.c
+0
-0
autocampars.php
src/autocampars.php
+1
-1
launch_php_script.c
src/launch_php_script.c
+0
-0
No files found.
.gitignore
View file @
f49906b2
*.o
*.o
*.kate-swp
attic/*
attic/*
/.project
/.project
/.cproject
/.cproject
/.pydevproject
/.pydevproject
/.externalToolBuilders
/.externalToolBuilders
/.settings
/.settings
/image
.directory
.directory
.depend
generated*
generated*
sysroots
sysroots
bitbake-logs
bitbake-logs
...
...
Makefile
View file @
f49906b2
PROGS
=
autocampars launch_php_script
# Runs 'make', 'make install', and 'make clean' in specified subdirectories
PHPSCRIPTS
=
autocampars.php
SUBDIRS
:=
src
SRCS
=
autocampars.c launch_php_script.c
INSTALLDIRS
=
$
(
SUBDIRS:%
=
install-%
)
#OBJS = $(SRC:.c=.o)
CLEANDIRS
=
$
(
SUBDIRS:%
=
clean-%
)
OBJS
=
autocampars.o launch_php_script.o
#TARGETDIR=$(DESTDIR)/www/pages
BINDIR
=
$(DESTDIR)
/usr/bin
all
:
$(SUBDIRS)
SYSCONFDIR
=
$(DESTDIR)
/etc
@
echo
"make all top"
CONFDIR
=
$(SYSCONFDIR)
/elphel393
DOCUMENTROOT
=
$(DESTDIR)
/www/pages
$(SUBDIRS)
:
AUTOCAMPARS_PHP
=
/www/pages/autocampars.php
$(MAKE)
-C
$@
INSTALL
=
install
install
:
$(INSTALLDIRS)
INSTMODE
=
0755
@
echo
"make install top"
INSTDOCS
=
0644
OWN
=
-o
root
-g
root
$(INSTALLDIRS)
:
$(MAKE)
-C
$
(
@:install-%
=
%
)
install
INCDIR
=
$(STAGING_DIR_HOST)
/usr/include-uapi
#CFLAGS += -Wall -I$(INCDIR)
clean
:
$(CLEANDIRS)
CFLAGS
+=
-Wall
-I
$(STAGING_DIR_HOST)
/usr/include-uapi
-D
'AUTOCAMPARS_PHP="
$(AUTOCAMPARS_PHP)
"'
@
echo
"make clean top"
all
:
$(PROGS)
$(CLEANDIRS)
:
$(MAKE)
-C
$
(
@:clean-%
=
%
)
clean
#$(PROGS): $(OBJS)
# $(CC) $(LDFLAGS) $^ $(LDLIBS) -o $@
.PHONY
:
all install clean $(SUBDIRS) $(INSTALLDIRS) $(CLEANDIRS)
autocampars
:
autocampars.o
$(CC)
$(LDFLAGS)
$^
$(LDLIBS)
-o
$@
@
echo
"AUTOCAMPARS_PHP=
$(AUTOCAMPARS_PHP)
"
launch_php_script
:
launch_php_script.o
$(CC)
$(LDFLAGS)
$^
$(LDLIBS)
-o
$@
install
:
$(PROGS) $(PHPSCRIPTS)
$(INSTALL)
-d
$(BINDIR)
$(INSTALL)
-d
$(DOCUMENTROOT)
$(INSTALL)
-d
$(SYSCONFDIR)
$(INSTALL)
-d
$(CONFDIR)
$(INSTALL)
$(OWN)
-m
$(INSTMODE)
$(PROGS)
$(BINDIR)
$(INSTALL)
$(OWN)
-m
$(INSTMODE)
$(PHPSCRIPTS)
$(DOCUMENTROOT)
clean
:
rm
-rf
$(PROGS)
*
.o core
configsubs
:
src/Makefile
0 → 100644
View file @
f49906b2
PROGS
=
autocampars launch_php_script
PHPSCRIPTS
=
autocampars.php
SRCS
=
autocampars.c launch_php_script.c
#OBJS = $(SRC:.c=.o)
OBJS
=
autocampars.o launch_php_script.o
BINDIR
=
$(DESTDIR)
/usr/bin
SYSCONFDIR
=
$(DESTDIR)
/etc
CONFDIR
=
$(SYSCONFDIR)
/elphel393
DOCUMENTROOT
=
$(DESTDIR)
/www/pages
AUTOCAMPARS_PHP
=
/www/pages/autocampars.php
INSTALL
=
install
INSTMODE
=
0755
INSTDOCS
=
0644
OWN
=
-o
root
-g
root
INCDIR
=
$(STAGING_DIR_HOST)
/usr/include-uapi
#CFLAGS += -Wall -I$(INCDIR)
CFLAGS
+=
-Wall
-I
$(STAGING_DIR_HOST)
/usr/include-uapi
-D
'AUTOCAMPARS_PHP="
$(AUTOCAMPARS_PHP)
"'
all
:
$(PROGS)
#$(PROGS): $(OBJS)
# $(CC) $(LDFLAGS) $^ $(LDLIBS) -o $@
autocampars
:
autocampars.o
$(CC)
$(LDFLAGS)
$^
$(LDLIBS)
-o
$@
@
echo
"AUTOCAMPARS_PHP=
$(AUTOCAMPARS_PHP)
"
launch_php_script
:
launch_php_script.o
$(CC)
$(LDFLAGS)
$^
$(LDLIBS)
-o
$@
install
:
$(PROGS) $(PHPSCRIPTS)
$(INSTALL)
-d
$(BINDIR)
$(INSTALL)
-d
$(DOCUMENTROOT)
$(INSTALL)
-d
$(SYSCONFDIR)
$(INSTALL)
-d
$(CONFDIR)
$(INSTALL)
$(OWN)
-m
$(INSTMODE)
$(PROGS)
$(BINDIR)
$(INSTALL)
$(OWN)
-m
$(INSTMODE)
$(PHPSCRIPTS)
$(DOCUMENTROOT)
clean
:
rm
-rf
$(PROGS)
*
.o core
configsubs
:
depend
:
.depend
.depend
:
$(SRCS)
rm
-f
./.depend
$(CC)
$(CFLAGS)
-MM
$^
>
./.depend
;
include
.depend
autocampars.c
→
src/
autocampars.c
View file @
f49906b2
File moved
autocampars.php
→
src/
autocampars.php
View file @
f49906b2
...
@@ -432,7 +432,7 @@ function sync2master($timeout=120,$min_frame_master=30) {
...
@@ -432,7 +432,7 @@ function sync2master($timeout=120,$min_frame_master=30) {
if
(
!
file_exists
(
'/var/state/APPLICATION'
)
||
!
file_exists
(
'/var/state/APPLICATION_MODE'
))
return
-
1
;
if
(
!
file_exists
(
'/var/state/APPLICATION'
)
||
!
file_exists
(
'/var/state/APPLICATION_MODE'
))
return
-
1
;
$application
=
file_get_contents
(
'/var/state/APPLICATION'
);
$application
=
file_get_contents
(
'/var/state/APPLICATION'
);
$IP_shift
=
(
file_get_contents
(
'/var/state/APPLICATION_MODE'
)
+
0
)
%
100
;
// 0 - SINGLE, 1..3 - Eyesis, 101+ Eyesis4pi
$IP_shift
=
(
file_get_contents
(
'/var/state/APPLICATION_MODE'
)
+
0
)
%
100
;
// 0 - SINGLE, 1..3 - Eyesis, 101+ Eyesis4pi
, 1001..1003 - E4pi393
if
(
$application
!=
'EYESIS'
)
return
0
;
/// not supported yet
if
(
$application
!=
'EYESIS'
)
return
0
;
/// not supported yet
if
(
$IP_shift
==
1
)
return
0
;
/// it is the master (101 will also get here)
if
(
$IP_shift
==
1
)
return
0
;
/// it is the master (101 will also get here)
$neteth0
=
file
(
'/etc/conf.d/net.eth0'
);
$neteth0
=
file
(
'/etc/conf.d/net.eth0'
);
...
...
launch_php_script.c
→
src/
launch_php_script.c
View file @
f49906b2
File moved
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment