aboutsummaryrefslogtreecommitdiffstats
path: root/CAN-binder
diff options
context:
space:
mode:
authorRomain Forlot <romain.forlot@iot.bzh>2017-05-02 17:22:58 +0200
committerRomain Forlot <romain.forlot@iot.bzh>2017-05-02 17:23:41 +0200
commitacffa3cf5e27ba2255cf903890bb13b0254dca3e (patch)
tree65a57faa509843aba785f866121b72f79f30ca5e /CAN-binder
parent09e762b94a941c9b6f2402c6ea8bf444e13c1574 (diff)
Implement AGLBuild script following SPEC-495 from JIRA
See: https://jira.automotivelinux.org/browse/SPEC-495 Needed as entry point for Yocto chain build. Change-Id: Id2d5d68fc0aa32ff9f52d2d176e68ac4de7353e7 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
Diffstat (limited to 'CAN-binder')
-rwxr-xr-xCAN-binder/AGLBuild.mk11
1 files changed, 4 insertions, 7 deletions
diff --git a/CAN-binder/AGLBuild.mk b/CAN-binder/AGLBuild.mk
index 1adb0e48..ccbc28be 100755
--- a/CAN-binder/AGLBuild.mk
+++ b/CAN-binder/AGLBuild.mk
@@ -16,8 +16,6 @@
BUILD_DIR := build
PACKAGING_DIR := packaging/wgt
-PACKAGING_FILE := $(PACKAGING_DIR)/package.in
-PKG_FILELIST := $(shell cat $(PACKAGING_FILE))
VPATH = etc:$(PACKAGING_DIR):$(PACKAGING_DIR)/etc:$(BUILD_DIR)
@@ -32,13 +30,12 @@ mrproper:
rm -rf ${BUILD_DIR}
build: ${BUILD_DIR}/Makefile
- cmake --build ${BUILD_DIR} --clean-first
+ cmake --build ${BUILD_DIR} --target all
-package: config.xml icon.png | $(PKG_FILELIST)
+package: config.xml.in icon.png.in build | $(PKG_FILELIST)
mkdir -p ${BUILD_DIR}/$@/{bin,etc,lib,htdocs,data}
- cp -r $(filter %.so, $|) ${BUILD_DIR}/$@/lib
- cp -r $(filter %.cfg %.conf %.cnf %.ini, $|) ${BUILD_DIR}/$@/etc
+ cmake --build ${BUILD_DIR} --target widget
${BUILD_DIR}/Makefile:
@[ -d ${BUILD_DIR} ] || mkdir -p ${BUILD_DIR}
- @[ -f ${BUILD_DIR}/Makefile ] || (cd ${BUILD_DIR} && cmake ${CMAKE_OPTS} ..)
+ @[ -f ${BUILD_DIR}/Makefile ] || (cd ${BUILD_DIR} && cmake ${CMAKE_OPTS} ..) \ No newline at end of file