2 Star 0 Fork 0

allOFsbc/dvsdk-dm3730

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
Makefile 9.14 KB
一键复制 编辑 原始数据 按行查看 历史
lvslightly 提交于 2016-09-11 13:13 . add edma3lld_01_11_02_05 c6accel
include Rules.make
#==========================================================================================================================================
# linuxutils
#==========================================================================================================================================
linuxutils_config:
@echo done
linuxutils_build:
@make -C $(LINUXUITILS_PATH)/packages/ti/sdo/linuxutils/cmem/src/interface \
../../lib/cmem.a470MV MVTOOL_PREFIX=$(CROSS_COMPILE) LINUXKERNEL_INSTALL_DIR=$(LINUX_PATH)
@make -C $(LINUXUITILS_PATH)/packages/ti/sdo/linuxutils/cmem/src/module \
MVTOOL_PREFIX=$(CROSS_COMPILE) LINUXKERNEL_INSTALL_DIR=$(LINUX_PATH)
@make -C $(LINUXUITILS_PATH)/packages/ti/sdo/linuxutils/sdma/src/module \
MVTOOL_PREFIX=$(CROSS_COMPILE) LINUXKERNEL_INSTALL_DIR=$(LINUX_PATH)
linuxutils_install:
install -d $(LINUXUITILS_INSTALL)
install $(LINUXUITILS_PATH)/packages/ti/sdo/linuxutils/cmem/src/module/cmemk.ko $(LINUXUITILS_INSTALL)
install $(LINUXUITILS_PATH)/packages/ti/sdo/linuxutils/sdma/src/module/sdmak.ko $(LINUXUITILS_INSTALL)
linuxutils_clean:
@make -C $(LINUXUITILS_PATH)/packages/ti/sdo/linuxutils/cmem/src/interface clean \
MVTOOL_PREFIX=$(CROSS_COMPILE) LINUXKERNEL_INSTALL_DIR=$(LINUX_PATH)
@make -C $(LINUXUITILS_PATH)/packages/ti/sdo/linuxutils/cmem/src/module clean \
MVTOOL_PREFIX=$(CROSS_COMPILE) LINUXKERNEL_INSTALL_DIR=$(LINUX_PATH)
@make -C $(LINUXUITILS_PATH)/packages/ti/sdo/linuxutils/sdma/src/module clean \
MVTOOL_PREFIX=$(CROSS_COMPILE) LINUXKERNEL_INSTALL_DIR=$(LINUX_PATH)
#==========================================================================================================================================
# dsplink
#==========================================================================================================================================
dsplink_config:
DSPLINK=$(DSPLINK_PATH)/dsplink \
perl $(DSPLINK_PATH)/dsplink/config/bin/dsplinkcfg.pl \
--platform=OMAP3530 --nodsp=1 --dspcfg_0=OMAP3530SHMEM \
--dspos_0=DSPBIOS5XX --gppos=OMAPLSP --comps=ponslrmc
dsplink_build:
#dsplink_arm
DSPLINK=$(DSPLINK_PATH)/dsplink \
$(MAKE) -C $(DSPLINK_PATH)/dsplink/gpp/src all \
CROSS_COMPILE=$(CROSS_COMPILE) \
CC=$(CROSS_COMPILE)gcc \
AR=$(CROSS_COMPILE)ar \
LD=$(CROSS_COMPILE)ld \
COMPILER=$(CROSS_COMPILE)gcc \
ARCHIVER=$(CROSS_COMPILE)ar \
KERNEL_DIR=$(LINUX_PATH) \
BASE_BUILDOS=$(LINUX_PATH)
#dsplink_arm_genpackage
$(XDC_PATH)/xdc -C $(DSPLINK_PATH)/dsplink/gpp clean
$(XDC_PATH)/xdc -C $(DSPLINK_PATH)/dsplink/gpp .interfaces
#dsplink_dsp
DSPLINK=$(DSPLINK_PATH)/dsplink \
$(MAKE) -C $(DSPLINK_PATH)/dsplink/dsp/src all \
BASE_CGTOOLS=$(CGT6X_PATH) \
BASE_SABIOS=$(DSPBIOS_PATH)
#dsplink_dsp_genpackage
$(XDC_PATH)/xdc -C $(DSPLINK_PATH)/dsplink/dsp clean
$(XDC_PATH)/xdc -C $(DSPLINK_PATH)/dsplink/dsp .interfaces
dsplink_install:
@install -d $(DSPLINK_INSTALL)
@install $(DSPLINK_PATH)/dsplink/gpp/export/BIN/Linux/OMAP3530/RELEASE/dsplinkk.ko $(DSPLINK_INSTALL)
dsplink_clean:
#dsplink_arm
DSPLINK=$(DSPLINK_PATH)/dsplink \
$(MAKE) -C $(DSPLINK_PATH)/dsplink/gpp/src clean \
CROSS_COMPILE=$(CROSS_COMPILE) \
CC=$(CROSS_COMPILE)gcc \
AR=$(CROSS_COMPILE)ar \
LD=$(CROSS_COMPILE)ld \
COMPILER=$(CROSS_COMPILE)gcc \
ARCHIVER=$(CROSS_COMPILE)ar \
KERNEL_DIR=$(LINUX_PATH) \
BASE_BUILDOS=$(LINUX_PATH)
#dsplink_arm_genpackage
$(XDC_PATH)/xdc -C $(DSPLINK_PATH)/dsplink/gpp clean
$(XDC_PATH)/xdc -C $(DSPLINK_PATH)/dsplink/gpp .interfaces
#dsplink_dsp
DSPLINK=$(DSPLINK_PATH)/dsplink \
$(MAKE) -C $(DSPLINK_PATH)/dsplink/dsp/src clean \
BASE_CGTOOLS=$(CGT6X_PATH) \
BASE_SABIOS=$(DSPBIOS_PATH)
#dsplink_dsp_genpackage
$(XDC_PATH)/xdc -C $(DSPLINK_PATH)/dsplink/dsp clean
$(XDC_PATH)/xdc -C $(DSPLINK_PATH)/dsplink/dsp .interfaces
#==========================================================================================================================================
# local-power-manager
#==========================================================================================================================================
lpm_config:
@echo done
lpm_build:
$(MAKE) -C $(LPM_PATH)/packages/ti/bios/power/modules/omap3530/lpm \
LINUXKERNEL_INSTALL_DIR=$(LINUX_PATH) \
MVTOOL_PREFIX=$(CROSS_COMPILE) \
DSPLINK_REPO=$(DSPLINK_PATH)
lpm_clean:
$(MAKE) -C $(LPM_PATH)/packages/ti/bios/power/modules/omap3530/lpm \
LINUXKERNEL_INSTALL_DIR=$(LINUX_PATH) \
MVTOOL_PREFIX=$(CROSS_COMPILE) \
DSPLINK_REPO=$(DSPLINK_PATH) clean
lpm_install:
install -d $(LPM_INSTALL)
install $(LPM_PATH)/packages/ti/bios/power/modules/omap3530/lpm/lpm_omap3530.ko $(LPM_INSTALL)
#==========================================================================================================================================
# codecs
#==========================================================================================================================================
codecs_config:
@echo done
codecs_build:
$(MAKE) -C $(CODECS_PATH) \
CE_INSTALL_DIR=$(CE_PATH) \
FC_INSTALL_DIR=$(FC_PATH) \
LINK_INSTALL_DIR=$(DSPLINK_PATH) \
CMEM_INSTALL_DIR=$(LINUXUITILS_PATH) \
XDAIS_INSTALL_DIR=$(XDAIS_PATH) \
XDC_INSTALL_DIR=$(XDC_PATH) \
LPM_INSTALL_DIR=$(LPM_PATH) \
BIOS_INSTALL_DIR=$(DSPBIOS_PATH) \
CODEGEN_INSTALL_DIR=$(CGT6X_PATH) \
BIOSUTILS_INSTALL_DIR=$(BIOSUTILS_PATH) \
C6ACCEL_INSTALL_DIR=$(C6ACCEL_PATH) \
CODEC_INSTALL_DIR=$(CODECS_PATH) \
XDCARGS="eval" \
all
codecs_clean:
$(MAKE) -C $(CODECS_PATH) \
CE_INSTALL_DIR=$(CE_PATH) \
FC_INSTALL_DIR=$(FC_PATH) \
LINK_INSTALL_DIR=$(DSPLINK_PATH) \
CMEM_INSTALL_DIR=$(LINUXUITILS_PATH) \
XDAIS_INSTALL_DIR=$(XDAIS_PATH) \
XDC_INSTALL_DIR=$(XDC_PATH) \
LPM_INSTALL_DIR=$(LPM_PATH) \
BIOS_INSTALL_DIR=$(DSPBIOS_PATH) \
CODEGEN_INSTALL_DIR=$(CGT6X_PATH) \
BIOSUTILS_INSTALL_DIR=$(BIOSUTILS_PATH) \
C6ACCEL_INSTALL_DIR=$(C6ACCEL_PATH) \
CODEC_INSTALL_DIR=$(CODECS_PATH) \
XDCARGS="eval" \
clean
codecs_install:
install -d $(CODECS_INSTALL)
for file in $(shell find $(CODECS_PATH) -name *.x64P); do \
cp $$file $(CODECS_INSTALL) ; \
done
#==========================================================================================================================================
# c6accel
#==========================================================================================================================================
c6accel_config:
@echo done
c6accel_build:
$(MAKE) -C $(C6ACCEL_PATH) \
PLATFORM="omap3530" \
CE_INSTALL_DIR="$(CE_PATH)" \
XDAIS_INSTALL_DIR="$(XDAIS_PATH)" \
LINK_INSTALL_DIR="$(DSPLINK_PATH)" \
CMEM_INSTALL_DIR="$(LINUXUITILS_PATH)" \
EDMA3_LLD_INSTALL_DIR="$(EDMA3_LLD_PATH)" \
CODEGEN_INSTALL_DIR="$(CGT6X_PATH)" \
XDC_INSTALL_DIR="$(XDC_PATH)" \
FC_INSTALL_DIR="$(FC_PATH)" \
BIOS_INSTALL_DIR="$(DSPBIOS_PATH)" \
BIOSUTILS_INSTALL_DIR="$(BIOSUTILS_PATH)" \
LPM_INSTALL_DIR="$(LPM_PATH)" \
SERVER_INSTALL_DIR="$(CODECS_PATH)" \
C6ACCEL_INSTALL_DIR="$(C6ACCEL_PATH)" \
CSTOOL_DIR="$(CROSS_COMPILE_PATH)" \
CSTOOL_PREFIX="$(CROSS_COMPILE)" \
LINUXLIBS_INSTALL_DIR=$(LINUXLIBS_PATH) \
all
c6accel_clean:
$(MAKE) -C $(C6ACCEL_PATH) \
PLATFORM="omap3530" \
CE_INSTALL_DIR="$(CE_PATH)" \
XDAIS_INSTALL_DIR="$(XDAIS_PATH)" \
LINK_INSTALL_DIR="$(DSPLINK_PATH)" \
CMEM_INSTALL_DIR="$(LINUXUITILS_PATH)" \
EDMA3_LLD_INSTALL_DIR="$(EDMA3_LLD_PATH)" \
CODEGEN_INSTALL_DIR="$(CGT6X_PATH)" \
XDC_INSTALL_DIR="$(XDC_PATH)" \
FC_INSTALL_DIR="$(FC_PATH)" \
BIOS_INSTALL_DIR="$(DSPBIOS_PATH)" \
BIOSUTILS_INSTALL_DIR="$(BIOSUTILS_PATH)" \
LPM_INSTALL_DIR="$(LPM_PATH)" \
SERVER_INSTALL_DIR="$(CODECS_PATH)" \
C6ACCEL_INSTALL_DIR="$(C6ACCEL_PATH)" \
CSTOOL_DIR="$(CROSS_COMPILE_PATH)" \
CSTOOL_PREFIX="$(CROSS_COMPILE)" \
LINUXLIBS_INSTALL_DIR=$(LINUXLIBS_PATH) \
clean
c6accel_install:
@echo done
# $(MAKE) -C $(C6ACCEL_PATH) \
# PLATFORM="omap3530" \
# CMEM_INSTALL_DIR="$(CMEM_INSTALL_DIR)" \
# LINK_INSTALL_DIR="$(LINK_INSTALL_DIR)" \
# LPM_INSTALL_DIR="$(LPM_INSTALL_DIR)" \
# C6ACCEL_INSTALL_DIR="$(C6ACCEL_INSTALL_DIR)" \
# EXEC_DIR_C6ACCEL="$(EXEC_DIR)//usr/share/ti/c6accel-apps" \
# install
#==========================================================================================================================================
# all
#==========================================================================================================================================
config: \
linuxutils_config \
dsplink_config \
lpm_config \
codecs_config
build: \
linuxutils_build \
dsplink_build \
lpm_build \
codecs_build
clean: \
linuxutils_clean \
dsplink_clean \
lpm_clean \
codecs_clean
install: \
linuxutils_install \
dsplink_install \
lpm_install \
codecs_install
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/allOFsbc/dvsdk-dm3730.git
git@gitee.com:allOFsbc/dvsdk-dm3730.git
allOFsbc
dvsdk-dm3730
dvsdk-dm3730
master

搜索帮助