Source code integration in ACME FOX SDK
Tags : acme fox
In the world of «i play with my FOX card» here is a little code integration in the ACME SDK. The goal is to stop manual compiling application and upload to the R/W flash partition. I want integration in flash image.
Howto...
Start by copying the sources files in a sub-directory of apps the add a Makefile :
AXIS_USABLE_LIBS = UCLIBC GLIBC
include $(AXIS_TOP_DIR)/tools/build/Rules.axis
PROGS = vidcat
INSTDIR = $(prefix)/usr/bin
#LDLIBS = -lusb
all: $(PROGS)
$(PROGS): $(PROGS).o
$(CC) $(LDFLAGS) $^ $(LDLIBS) -o $@
install: $(PROGS)
$(INSTALL) -p -o root -g root -m 0777 $(PROGS) $(INSTDIR)
clean:
rm -f $(PROGS) *.o core
Then, launch make cris-axis-linux-gnu.
Next, take a look to configure-files/common/AC_common and add :
menu "Lefinnois"
config LEFINNOIS_V4LCAPTURE
bool "Client de capture de frame V4L pour cam OV511 YUV"
default n
endmenu
These lines add menu in the configuration interface. We need to test status of the choice, play with configure-files/devboard/devboard :
if [ "$AXIS_CONFIG_LEFINNOIS_V4LCAPTURE" = "y" ]; then
sub_no_fetch apps/v4lcapture
fi
Done ! Let's ./configure and the Makefile will update with apps/v4lcapture directory. Take a look to axis_config.h and you will see :
i#define AXIS_CONFIG_LEFINNOIS_V4LCAPTURE 1
Use make and build the world ! Then :
% find . -name vidcat ./apps/v4lcapture/vidcat ./target/cris-axis-linux-gnu/usr/bin/vidcat