forked from ElecardSTB/elecard-apps
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
48 lines (36 loc) · 1.8 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
include ../../etc/envvars.mk
include $(BUILDROOT)/.prjconfig
include $(COMPONENT_DIR)/fwinfo/firmwareDesc
ROOTFS_TARGET=$(BUILDROOT)/rootfs
ROOTFS_NFS_TARGET=$(BUILDROOT)/rootfs_nfs
all:
echo "This make should run by buildroot!"
build-apps:
$(call ECHO_MESSAGE,Build src/apps)
make CROSS_COMPILE=sh4-linux- BUILD_TARGET=sh4/ -C ./elcdRpcLib
make CROSS_COMPILE=sh4-linux- BUILD_TARGET=sh4/ -C ./cJSON
make CROSS_COMPILE=sh4-linux- BUILD_TARGET=sh4/ -C ./libsamplerate-0.1.8
make CROSS_COMPILE=sh4-linux- BUILD_TARGET=sh4/ -C ./sysidConverter
# elcdrpc and cjson should be installed before building StbMainApp, because this libraries are used by StbMainApp
install -m 755 -p ./elcdRpcLib/sh4/libelcdrpc.so $(ROOTFS_TARGET)/opt/elecard/lib/
install -m 755 -p ./cJSON/sh4/libcjson.so $(ROOTFS_TARGET)/opt/elecard/lib/
install -m 755 -p ./libsamplerate-0.1.8/sh4/libsamplerate.so $(ROOTFS_TARGET)/opt/elecard/lib/
make CC="sh4-linux-gcc --sysroot=$(STAGINGDIR)" BUILD_TARGET=sh4/ prefix=$(ROOTFS_TARGET)/opt/elecard/ -C ./SambaQuery all install
make CC=sh4-linux-gcc -C StbCommandClient
make CC=sh4-linux-gcc -C mdevmonitor
ifeq ($(ENABLE_PVR),1)
make CC=sh4-linux-gcc -C StbPvr all install
endif
ifeq ($(CONFIG_ELECD_ENABLE),y)
make CROSS_COMPILE=sh4-linux- RELEASE_TYPE="$(REVISION) built on $(HOSTNAME)" COMPILE_TIME="$(DATE_READABLE)" -C ./StbMainApp all
endif
install-apps: build-apps
mkdir -p $(ROOTFS_TARGET)/opt/elecard/lib/ $(ROOTFS_TARGET)/opt/elecard/bin/
install -m 755 -p ./StbCommandClient/StbCommandClient $(ROOTFS_TARGET)/opt/elecard/bin/
install -m 755 -p ./mdevmonitor/mdevmonitor $(ROOTFS_TARGET)/opt/elecard/bin/
install -m 755 -p ./sysidConverter/sh4/sysidConverter $(ROOTFS_TARGET)/opt/elecard/bin/
#This calls from buildroot for rootfs
rootfs-apps: install-apps
rootfs-apps-clean:
help:
echo "help"