From 65e8f9519dff8f44ff2a6604d5c97ea892994e2b Mon Sep 17 00:00:00 2001 From: Koen Kooi Date: Fri, 11 Jul 2008 11:30:42 +0000 Subject: dsplink: create an 'openembedded' distro for dsplink, update kernel flags --- packages/dsplink/dsplink.inc | 34 +++-- packages/dsplink/dsplink_1.50.bb | 2 +- packages/dsplink/dsplink_1.51.00.08.bb | 2 +- packages/dsplink/files/davinci_mvlpro5.0.mk | 201 ---------------------------- packages/dsplink/files/openembedded.mk | 196 +++++++++++++++++++++++++++ 5 files changed, 224 insertions(+), 211 deletions(-) delete mode 100644 packages/dsplink/files/davinci_mvlpro5.0.mk create mode 100644 packages/dsplink/files/openembedded.mk (limited to 'packages/dsplink') diff --git a/packages/dsplink/dsplink.inc b/packages/dsplink/dsplink.inc index 95f2552eb6..f528271c2f 100644 --- a/packages/dsplink/dsplink.inc +++ b/packages/dsplink/dsplink.inc @@ -25,23 +25,41 @@ DSPLINKSOC_beagleboard = "3530" USERARMFLAGS = "${TARGET_CC_ARCH}" -KERNELARMFLAGS = "-D__LINUX_ARM_ARCH__=5 -march=armv5t -mtune=arm9tdmi" -KERNELARMFLAGS_armv6 = "-D__LINUX_ARM_ARCH__=6 -march=armv6j -mtune=arm1136jf-s" -KERNELARMFLAGS_armv7a = "-D__LINUX_ARM_ARCH__=7 -march=armv7-a -mtune=cortex-a8" - +KERNELARMFLAGS = "-include linux/autoconf.h -c -iwithprefix include -Iinclude -Wall -Wstrict-prototypes \ + -Wno-trigraphs -fno-strict-aliasing -fno-common \ + -fno-omit-frame-pointer -mapcs -mno-sched-prolog \ + -mlittle-endian \ + -D__LINUX_ARM_ARCH__=5 -march=armv5t -mtune=arm9tdmi \ + -msoft-float -Uarm -mapcs \ + -Wdeclaration-after-statement -Os -marm -mabi=aapcs-linux" +KERNELARMFLAGS_armv6 = "-include linux/autoconf.h -c -iwithprefix include -Iinclude -Wall -Wstrict-prototypes \ + -Wno-trigraphs -fno-strict-aliasing -fno-common \ + -fno-omit-frame-pointer -mapcs -mno-sched-prolog \ + -mlittle-endian \ + -D__LINUX_ARM_ARCH__=6 -march=armv6j -mtune=arm1136jf-s \ + -msoft-float -Uarm -mapcs \ + -Wdeclaration-after-statement -Os -marm -mabi=aapcs-linux" +KERNELARMFLAGS_armv7a = "-c -nostdinc -include $(BASE_OSINC)/linux/autoconf.h -isystem $(OSINC_PLATFORM) -iwithprefix include -Iinclude -Wall -Wstrict-prototypes \ + -Wno-trigraphs -fno-strict-aliasing -fno-common \ + -fno-omit-frame-pointer -mapcs -mno-sched-prolog \ + -mlittle-endian \ + -D__LINUX_ARM_ARCH__=7 -march=armv7-a -mtune=cortex-a8 \ + -msoft-float -Uarm -mapcs \ + -Wdeclaration-after-statement -Os -marm -mabi=aapcs-linux \ + -D__KERNEL__ -mno-thumb-interwork -msoft-float -fno-optimize-sibling-calls -g -fno-stack-protector -Wno-pointer-sign -g -DUSE_UDEV=1 -DOS_LINUX -DLINUX_KERNEL" export DSPLINKPLATFORM export DSPLINKDSP do_configure () { cp ${WORKDIR}/CURRENTCFG.MK ${S}/config - cp ${WORKDIR}/davinci_mvlpro5.0.mk ${S}/make/Linux + cp ${WORKDIR}/openembedded.mk ${S}/make/Linux cp ${WORKDIR}/c64xx_5.xx_linux.mk ${S}/make/DspBios sed -i -e s:SED_ME_SOURCEDIR:${S}:g \ - -e s:SED_ME_GPPDISTRO:davinci_mvlpro5\.0:g \ + -e s:SED_ME_GPPDISTRO:openembedded:g \ -e s:SED_ME_KERNELVERSION:${KERNEL_VERSION}:g \ - -e s:SED_ME_DSPDISTRO:davinci_mvlpro5\.0:g \ + -e s:SED_ME_DSPDISTRO:openembedded:g \ -e s:SED_ME_PLATFORM:${DSPLINKPLATFORM}:g \ -e s:SED_ME_DSP:${DSPLINKDSP}:g \ -e s:SED_ME_SOC:${DSPLINKSOC}:g \ @@ -53,7 +71,7 @@ do_configure () { -e s:SED_ME_KERNELDIR:${STAGING_KERNEL_DIR}:g \ -e 's:SEDME_KERNEL_ARMFLAGS:${KERNELARMFLAGS}:g' \ -e 's:SEDME_USER_ARMFLAGS:${USERARMFLAGS}:g' \ - ${S}/make/Linux/davinci_mvlpro5.0.mk + ${S}/make/Linux/openembedded.mk } diff --git a/packages/dsplink/dsplink_1.50.bb b/packages/dsplink/dsplink_1.50.bb index f222fd2861..9ded5ef43d 100644 --- a/packages/dsplink/dsplink_1.50.bb +++ b/packages/dsplink/dsplink_1.50.bb @@ -11,7 +11,7 @@ PV = "1.50" SRC_URI = "http://install.tarball.in.source.dir/dsplink_1_50.tar.gz \ file://CURRENTCFG.MK \ file://c64xx_5.xx_linux.mk \ - file://davinci_mvlpro5.0.mk \ + file://openmebdded.mk \ file://prcs-fix-include.patch;patch=1;pnum=2 \ " diff --git a/packages/dsplink/dsplink_1.51.00.08.bb b/packages/dsplink/dsplink_1.51.00.08.bb index 3be772d801..928f03204f 100644 --- a/packages/dsplink/dsplink_1.51.00.08.bb +++ b/packages/dsplink/dsplink_1.51.00.08.bb @@ -11,7 +11,7 @@ PV = "1.51" SRC_URI = "http://install.tarball.in.source.dir/dsplink_1_51_00_08.tar.gz \ file://CURRENTCFG.MK \ file://c64xx_5.xx_linux.mk \ - file://davinci_mvlpro5.0.mk \ + file://openembedded.mk \ file://prcs-fix-include.patch;patch=1;pnum=2 \ " diff --git a/packages/dsplink/files/davinci_mvlpro5.0.mk b/packages/dsplink/files/davinci_mvlpro5.0.mk deleted file mode 100644 index 00bae888e6..0000000000 --- a/packages/dsplink/files/davinci_mvlpro5.0.mk +++ /dev/null @@ -1,201 +0,0 @@ -# ============================================================================ -# @file davinci_mvlpro5.0.mk -# -# @path $(DSPLINK)/make/Linux/ -# -# @desc This makefile defines OS specific macros used by MAKE system for -# the Montavista Pro 5.0 Linux distribution. -# -# @ver 1.50 -# ============================================================================ -# Copyright (c) Texas Instruments Incorporated 2002-2007 -# -# Use of this software is controlled by the terms and conditions found in the -# license agreement under which this software has been supplied or provided. -# ============================================================================ - - -ifndef DAVINCI_MVLPRO5_0_MK - -define DAVINCI_MVLPRO5_0_MK -endef - - -# ============================================================================ -# Let the make system know that a specific distribution for the GPP OS -# is being used. -# ============================================================================ -USE_DISTRIBUTION := 1 - - -# ============================================================================ -# Set the values of necessary variables to be used for the OS. -# ============================================================================ - -# ---------------------------------------------------------------------------- -# Base directory for the GPP OS -# ---------------------------------------------------------------------------- -BASE_BUILDOS := SED_ME_KERNELDIR - -# ---------------------------------------------------------------------------- -# Base for code generation tools - compiler, linker, archiver etc. -# ---------------------------------------------------------------------------- -BASE_CGTOOLS := /opt/montavista/pro/devkit/arm/v5t_le/bin - -# ---------------------------------------------------------------------------- -# Base directory for include files provided by GPP OS -# ---------------------------------------------------------------------------- -BASE_OSINC := $(BASE_BUILDOS)/include - -OSINC_GENERIC := $(BASE_OSINC) -OSINC_PLATFORM := SED_ME_CROSS/4.2.0/include -OSINC_TARGET := SED_ME_STAGINGDIR/usr/include - -ifneq ("$(VARIANT)", "") -OSINC_VARIANT := $(BASE_OSINC) -endif - - -# ---------------------------------------------------------------------------- -# Base directory for libraries provided by GPP OS -# ---------------------------------------------------------------------------- -BASE_OSLIB := SED_ME_STAGINGDIR/lib - -OSLIB_GENERIC := $(BASE_OSLIB) -OSLIB_PLATFORM := $(BASE_OSLIB) - - -ifneq ("$(VARIANT)", "") -OSLIB_VARIANT := $(BASE_OSLIB) -endif - - -# ============================================================================ -# COMPILER -# ============================================================================ - -# ---------------------------------------------------------------------------- -# Name of the compiler -# ---------------------------------------------------------------------------- -COMPILER := SED_ME_TARGET_PREFIXgcc -LD := SED_ME_TARGET_PREFIXld - -CROSS_COMPILE := SED_ME_TARGET_PREFIX -export CROSS_COMPILE - -# ---------------------------------------------------------------------------- -# Command line switches used by the compiler -# -# CC_SW_DEF Command line defines -# CC_SW_INC Search path for header files -# CC_SW_OBJ Create object file -# CC_SW_DEB Include debug information -# ---------------------------------------------------------------------------- -CC_SW_DEF := -D -CC_SW_INC := -I -CC_SW_OBJ := -o -CC_SW_DEB := -g - -# ---------------------------------------------------------------------------- -# Standard flags for the compiler -# ---------------------------------------------------------------------------- -STD_KRNL_FLAGS := -include linux/autoconf.h -c -iwithprefix include -Iinclude -Wall -Wstrict-prototypes\ - -Wno-trigraphs -fno-strict-aliasing -fno-common \ - -fno-omit-frame-pointer -mapcs -mno-sched-prolog \ - -mlittle-endian SEDME_KERNEL_ARMFLAGS \ - -msoft-float -Uarm -mapcs \ - -Wdeclaration-after-statement -Os -marm -mabi=aapcs-linux -STD_USER_FLAGS := -mlittle-endian SEDME_USER_ARMFLAGS -msoft-float \ - -Uarm -Wdeclaration-after-statement -marm -Wall \ - -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing \ - -fno-common -fno-omit-frame-pointer -mapcs -c \ - -mabi=aapcs-linux - -# ---------------------------------------------------------------------------- -# Standard flags for the compiler when building an executable -# ---------------------------------------------------------------------------- -EXE_CC_FLAGS := - -# ---------------------------------------------------------------------------- -# Flags for the compiler when building a driver -# ---------------------------------------------------------------------------- -DRV_CC_FLAGS := -nostdinc - -# ---------------------------------------------------------------------------- -# Flags for the compiler when building a library -# ---------------------------------------------------------------------------- -LIB_CC_FLAGS := - -# ---------------------------------------------------------------------------- -# Standard definitions for the compiler -# ---------------------------------------------------------------------------- -STD_CC_DEFNS := -D_REENTRANT - - -# ============================================================================ -# ARCHIVER1 - This denotes the linker. -# ============================================================================ -ARCHIVER1 := SED_ME_TARGET_PREFIXld - -# ---------------------------------------------------------------------------- -# Standard flags for the archiver -# ---------------------------------------------------------------------------- -STD_AR_FLAGS1 := -EL -r - - -# ============================================================================ -# ARCHIVER2 - This denotes the archiver. -# ============================================================================ -ARCHIVER2 := SED_ME_TARGET_PREFIXar - -# ---------------------------------------------------------------------------- -# Standard flags for the archiver -# ---------------------------------------------------------------------------- -STD_AR_FLAGS2 := -r - - -# ============================================================================ -# LINKER - The compiler is used for linking purpose as well. -# ============================================================================ -LINKER := SED_ME_TARGET_PREFIXgcc - -# ---------------------------------------------------------------------------- -# Command line switches used by the linker -# -# LD_SW_LIB Search path for libraries -# LD_SW_OUT Output filename -# LD_SW_RELOC Generate relocateable output -# ---------------------------------------------------------------------------- -LD_SW_LIB := -L -LD_SW_OUT := -o -LD_SW_RELOC := -r - -# ---------------------------------------------------------------------------- -# Standard flags for the linker -# ---------------------------------------------------------------------------- -STD_LD_FLAGS := - -# ---------------------------------------------------------------------------- -# Specific flags for the linker if linking and module generating utility are -# different -# ---------------------------------------------------------------------------- -SPECIFIC_LD_FLAGS := -lpthread - -# ---------------------------------------------------------------------------- -# Flags for the linker when building an executable -# ---------------------------------------------------------------------------- -EXE_LD_FLAGS := -lc - -# ---------------------------------------------------------------------------- -# Flags for the linker when building a driver -# ---------------------------------------------------------------------------- -DRV_LD_FLAGS := - - -# ============================================================================ -# Post processing utilities for Linux 2.6 -# ============================================================================ -CMD_MODPOST := $(BASE_BUILDOS)/scripts/mod/modpost -i $(BASE_BUILDOS)/Module.symvers $(BASE_BUILDOS)/vmlinux - - -endif # ifndef DAVINCI_MVLPRO5_0_MK diff --git a/packages/dsplink/files/openembedded.mk b/packages/dsplink/files/openembedded.mk new file mode 100644 index 0000000000..aaf241ad14 --- /dev/null +++ b/packages/dsplink/files/openembedded.mk @@ -0,0 +1,196 @@ +# ============================================================================ +# @file davinci_mvlpro5.0.mk +# +# @path $(DSPLINK)/make/Linux/ +# +# @desc This makefile defines OS specific macros used by MAKE system for +# the Montavista Pro 5.0 Linux distribution. +# +# @ver 1.50 +# ============================================================================ +# Copyright (c) Texas Instruments Incorporated 2002-2007 +# +# Use of this software is controlled by the terms and conditions found in the +# license agreement under which this software has been supplied or provided. +# ============================================================================ + + +ifndef DAVINCI_MVLPRO5_0_MK + +define DAVINCI_MVLPRO5_0_MK +endef + + +# ============================================================================ +# Let the make system know that a specific distribution for the GPP OS +# is being used. +# ============================================================================ +USE_DISTRIBUTION := 1 + + +# ============================================================================ +# Set the values of necessary variables to be used for the OS. +# ============================================================================ + +# ---------------------------------------------------------------------------- +# Base directory for the GPP OS +# ---------------------------------------------------------------------------- +BASE_BUILDOS := SED_ME_KERNELDIR + +# ---------------------------------------------------------------------------- +# Base for code generation tools - compiler, linker, archiver etc. +# ---------------------------------------------------------------------------- +BASE_CGTOOLS := /opt/montavista/pro/devkit/arm/v5t_le/bin + +# ---------------------------------------------------------------------------- +# Base directory for include files provided by GPP OS +# ---------------------------------------------------------------------------- +BASE_OSINC := $(BASE_BUILDOS)/include + +OSINC_GENERIC := $(BASE_OSINC) +OSINC_PLATFORM := SED_ME_CROSS/4.2.0/include +OSINC_TARGET := SED_ME_STAGINGDIR/usr/include + +ifneq ("$(VARIANT)", "") +OSINC_VARIANT := $(BASE_OSINC) +endif + + +# ---------------------------------------------------------------------------- +# Base directory for libraries provided by GPP OS +# ---------------------------------------------------------------------------- +BASE_OSLIB := SED_ME_STAGINGDIR/lib + +OSLIB_GENERIC := $(BASE_OSLIB) +OSLIB_PLATFORM := $(BASE_OSLIB) + + +ifneq ("$(VARIANT)", "") +OSLIB_VARIANT := $(BASE_OSLIB) +endif + + +# ============================================================================ +# COMPILER +# ============================================================================ + +# ---------------------------------------------------------------------------- +# Name of the compiler +# ---------------------------------------------------------------------------- +COMPILER := SED_ME_TARGET_PREFIXgcc +LD := SED_ME_TARGET_PREFIXld + +CROSS_COMPILE := SED_ME_TARGET_PREFIX +export CROSS_COMPILE + +# ---------------------------------------------------------------------------- +# Command line switches used by the compiler +# +# CC_SW_DEF Command line defines +# CC_SW_INC Search path for header files +# CC_SW_OBJ Create object file +# CC_SW_DEB Include debug information +# ---------------------------------------------------------------------------- +CC_SW_DEF := -D +CC_SW_INC := -I +CC_SW_OBJ := -o +CC_SW_DEB := -g + +# ---------------------------------------------------------------------------- +# Standard flags for the compiler +# ---------------------------------------------------------------------------- +STD_KRNL_FLAGS := SEDME_KERNEL_ARMFLAGS +STD_USER_FLAGS := -mlittle-endian SEDME_USER_ARMFLAGS -msoft-float \ + -Uarm -Wdeclaration-after-statement -marm -Wall \ + -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing \ + -fno-common -fno-omit-frame-pointer -mapcs -c \ + -mabi=aapcs-linux + +# ---------------------------------------------------------------------------- +# Standard flags for the compiler when building an executable +# ---------------------------------------------------------------------------- +EXE_CC_FLAGS := + +# ---------------------------------------------------------------------------- +# Flags for the compiler when building a driver +# ---------------------------------------------------------------------------- +DRV_CC_FLAGS := -nostdinc + +# ---------------------------------------------------------------------------- +# Flags for the compiler when building a library +# ---------------------------------------------------------------------------- +LIB_CC_FLAGS := + +# ---------------------------------------------------------------------------- +# Standard definitions for the compiler +# ---------------------------------------------------------------------------- +STD_CC_DEFNS := -D_REENTRANT + + +# ============================================================================ +# ARCHIVER1 - This denotes the linker. +# ============================================================================ +ARCHIVER1 := SED_ME_TARGET_PREFIXld + +# ---------------------------------------------------------------------------- +# Standard flags for the archiver +# ---------------------------------------------------------------------------- +STD_AR_FLAGS1 := -EL -r + + +# ============================================================================ +# ARCHIVER2 - This denotes the archiver. +# ============================================================================ +ARCHIVER2 := SED_ME_TARGET_PREFIXar + +# ---------------------------------------------------------------------------- +# Standard flags for the archiver +# ---------------------------------------------------------------------------- +STD_AR_FLAGS2 := -r + + +# ============================================================================ +# LINKER - The compiler is used for linking purpose as well. +# ============================================================================ +LINKER := SED_ME_TARGET_PREFIXgcc + +# ---------------------------------------------------------------------------- +# Command line switches used by the linker +# +# LD_SW_LIB Search path for libraries +# LD_SW_OUT Output filename +# LD_SW_RELOC Generate relocateable output +# ---------------------------------------------------------------------------- +LD_SW_LIB := -L +LD_SW_OUT := -o +LD_SW_RELOC := -r + +# ---------------------------------------------------------------------------- +# Standard flags for the linker +# ---------------------------------------------------------------------------- +STD_LD_FLAGS := + +# ---------------------------------------------------------------------------- +# Specific flags for the linker if linking and module generating utility are +# different +# ---------------------------------------------------------------------------- +SPECIFIC_LD_FLAGS := -lpthread + +# ---------------------------------------------------------------------------- +# Flags for the linker when building an executable +# ---------------------------------------------------------------------------- +EXE_LD_FLAGS := -lc + +# ---------------------------------------------------------------------------- +# Flags for the linker when building a driver +# ---------------------------------------------------------------------------- +DRV_LD_FLAGS := + + +# ============================================================================ +# Post processing utilities for Linux 2.6 +# ============================================================================ +CMD_MODPOST := $(BASE_BUILDOS)/scripts/mod/modpost -i $(BASE_BUILDOS)/Module.symvers $(BASE_BUILDOS)/vmlinux + + +endif # ifndef DAVINCI_MVLPRO5_0_MK -- cgit v1.2.3