source: svn/branches/kctv/newcon3bcm2_21bu/dst/build/settop_api.mk @ 46

Last change on this file since 46 was 2, checked in by phkim, 11 years ago

1.phkim

  1. revision copy newcon3sk r27
  • Property svn:executable set to *
File size: 3.5 KB
Line 
1
2ifeq ($(MAKELEVEL),1)
3# Base flags and variables for all modules
4include platform.inc
5endif
6
7LIBDIR := $(shell cd ../lib ; /bin/pwd)
8DTADIR := $(shell cd ../src ; /bin/pwd)
9NEXUS_TOP := $(shell cd ../../nexus ; /bin/pwd)
10BSEAV_TOP := $(shell cd ../../BSEAV ; /bin/pwd)
11BSEAV_LIB_DIR := $(BSEAV_TOP)/lib
12B_LIB_TOP := $(NEXUS_TOP)/lib
13B_OS_LIB_DIR := $(B_LIB_TOP)/os
14SOFT_GFX_LIB_DIR := $(B_LIB_TOP)/softgfx
15BSEAV_BLD_DIR := $(BSEAV_TOP)/api/build/nexus
16BSEAV_SRC_DIR := $(BSEAV_TOP)/api/src/nexus
17BSEAV_INC_DIR := $(BSEAV_TOP)/api/include
18BSEAV_OS_INC_DIR := $(BSEAV_TOP)/api/include/$(OS)
19
20#
21# Include nexus OS library required by settop API
22#
23
24include $(B_OS_LIB_DIR)/b_os_lib.inc
25include $(BSEAV_LIB_DIR)/bfile/bfile.inc
26
27CFLAGS += \
28        $(addprefix -I,$(B_OS_LIB_PUBLIC_INCLUDES)) \
29        $(addprefix -I,$(BFILE_INCLUDES)) \
30        $(addprefix -D,$(B_OS_LIB_DEFINES))
31
32CFLAGS += -DB_OS_UCOS_II -DB_HAS_SOFT_GFX
33CFLAGS += -DBCM_BOARD_STR=\"\"
34
35
36#
37# Optionaly build the settop api library and nexus os library
38#
39
40ifeq ($(BUILD_SETTOP_API),y)
41
42SETTOP_API_SOURCES = \
43        $(BSEAV_BLD_DIR)/bsettop_autogen_thunks.c \
44        $(BSEAV_SRC_DIR)/bsettop_audio_capture.c \
45        $(BSEAV_SRC_DIR)/bsettop.c \
46        $(BSEAV_SRC_DIR)/bsettop_cipher.c \
47        $(BSEAV_SRC_DIR)/bsettop_compat.c \
48        $(BSEAV_SRC_DIR)/bsettop_config.c \
49        $(BSEAV_SRC_DIR)/bsettop_crypto.c \
50        $(BSEAV_SRC_DIR)/bsettop_decode.c \
51        $(BSEAV_SRC_DIR)/bsettop_display.c \
52        $(BSEAV_SRC_DIR)/bsettop_encode.c \
53        $(BSEAV_SRC_DIR)/bsettop_graphics.c \
54        $(BSEAV_SRC_DIR)/bsettop_ip.c \
55        $(BSEAV_SRC_DIR)/bsettop_keyslot_priv.c \
56        $(BSEAV_SRC_DIR)/bsettop_message.c \
57        $(BSEAV_SRC_DIR)/bsettop_os.c \
58        $(BSEAV_SRC_DIR)/bsettop_pcm_capture.c \
59        $(BSEAV_SRC_DIR)/bsettop_pcm_playback.c \
60        $(BSEAV_SRC_DIR)/bsettop_smartcard.c \
61        $(BSEAV_SRC_DIR)/bsettop_stream.c \
62        $(BSEAV_SRC_DIR)/bsettop_stream_encryption.c \
63        $(BSEAV_SRC_DIR)/bsettop_transcode.c \
64        $(BSEAV_SRC_DIR)/bsettop_tuner.c \
65        $(BSEAV_SRC_DIR)/bsettop_user_io.c \
66        $(BSEAV_SRC_DIR)/bsettop_vbi.c \
67        $(BSEAV_SRC_DIR)/bsettop_pvr.c \
68        $(BSEAV_SRC_DIR)/bsettop_recpump.c
69
70B_OS_LIB_SOURCES += $(SETTOP_API_SOURCES) $(BFILE_SOURCES)
71
72CFLAGS += -I$(BSEAV_SRC_DIR) -I$(BSEAV_INC_DIR) -I$(BSEAV_OS_INC_DIR) -I$(BSEAV_SRC_DIR)/board -I$(BSEAV_BLD_DIR)
73
74CFLAGS += $(addprefix -I,$(B_OS_LIB_PRIVATE_INCLUDES))
75
76CFLAGS += -DB_HAS_FCC
77
78B_OS_LIB_OBJECTS = $(patsubst %.c,%.o,$(filter %.c,$(B_OS_LIB_SOURCES))) $(patsubst %.S,%.o,$(filter %.S,$(B_OS_LIB_SOURCES)))
79
80B_OS_LIB_DEPENDS = $(B_OS_LIB_OBJECTS:.o=.d)
81
82all: $(LIBDIR)/libb_os.a
83
84$(LIBDIR)/libb_os.a: $(B_OS_LIB_OBJECTS) $(LIBDIR)/libb_os.a($(B_OS_LIB_OBJECTS))
85
86clean : clean_b_os thunk-clean
87
88clean_b_os:
89        $(RM) -f $(LIBDIR)/libb_os.a $(B_OS_LIB_OBJECTS) $(B_OS_LIB_DEPENDS)
90
91
92$(BSEAV_BLD_DIR)/bsettop_autogen_thunks.c: $(BSEAV_INC_DIR)/bsettop_display.h $(BSEAV_INC_DIR)/bsettop_message.h $(BSEAV_INC_DIR)/bsettop_types.h $(BSEAV_INC_DIR)/bsettop_cipher.h $(BSEAV_INC_DIR)/bsettop_encode.h $(BSEAV_INC_DIR)/bsettop_pcm.h $(BSEAV_INC_DIR)/bsettop_smartcard.h $(BSEAV_INC_DIR)/bsettop_user_io.h $(BSEAV_INC_DIR)/bsettop_config.h $(BSEAV_INC_DIR)/bsettop_graphics.h $(BSEAV_INC_DIR)/bsettop_stream.h $(BSEAV_INC_DIR)/bsettop_vbi.h $(BSEAV_INC_DIR)/bsettop_decode.h $(BSEAV_INC_DIR)/bsettop.h $(BSEAV_INC_DIR)/bsettop_tuner.h $(BSEAV_INC_DIR)/bsettop_mem.h
93
94        @echo "[Thunk... bsettop]"
95        @$(PERL) -x$(BSEAV_BLD_DIR) $(BSEAV_BLD_DIR)/bapi_build.pl $^
96 #       @$(PERL) -I$(BSEAV_BLD_DIR) $(BSEAV_BLD_DIR)/bapi_build.pl $^
97
98$(BSEAV_BLD_DIR)/bsettop_autogen_thunks.h: $(BSEAV_BLD_DIR)/bsettop_autogen_thunks.c
99
100thunk-clean:
101        @$(RM) $(BSEAV_BLD_DIR)/bsettop_autogen_thunks.*
102
103
104-include $(B_OS_LIB_DEPENDS)
105
106endif
Note: See TracBrowser for help on using the repository browser.