diff options
author | Ting Liu <b28495@freescale.com> | 2013-07-08 11:08:16 +0800 |
---|---|---|
committer | Zhenhua Luo <zhenhua.luo@freescale.com> | 2013-07-10 11:22:18 +0800 |
commit | 4121c7b01546ad072383d92946cd54d0f87259a8 (patch) | |
tree | 4abe2963513db999ceed7d1dac2a39e70ffc4414 /meta-fsl-ppc/recipes-dpaa | |
parent | 78a2e463e9f5ee97b5d2cf1c91d4a4531eaa82d8 (diff) | |
download | meta-freescale-4121c7b01546ad072383d92946cd54d0f87259a8.tar.gz |
change layout to follow oe-core guidelines of recipes
Follow the rules defined in:
http://git.yoctoproject.org/cgit/cgit.cgi/poky/tree/meta/recipes.txt
recipes-bsp - Anything with links to specific hardware or
hardware configuration information
recipes-connectivity - Libraries and applications related to
communication with other devices
recipes-core - What's needed to build a basic working Linux
image including commonly used dependencies
recipes-devtools - Tools primarily used by the build system (but can
also be used on targets)
recipes-extended - Applications which whilst not essential add
features compared to the alternatives in
core. May be needed for full tool functionality
or LSB compliance.
recipes-gnome - All things related to the GTK+ application
framework
recipes-graphics - X and other graphically related system libraries
recipes-kernel - The kernel and generic applications/libraries
with strong kernel dependencies
recipes-lsb4 - Recipes added for the sole purpose of supporting
the Linux Standard Base (LSB) 4.x
recipes-multimedia - Codecs and support utilties for audio, images and
video
recipes-rt - Provides package and image recipes for using and
testing the PREEMPT_RT kernel
recipes-qt - All things related to the Qt application
framework
recipes-sato - The Sato demo/reference UI/UX, its associated
apps and configuration
recipes-support - Recipes used by other recipes but that are not
directly included in images
recipes-dpaa - recipes related to fsl dpaa feature
recipes-virtualization - recipes related to fsl virtualization feature
Signed-off-by: Ting Liu <b28495@freescale.com>
Diffstat (limited to 'meta-fsl-ppc/recipes-dpaa')
7 files changed, 268 insertions, 0 deletions
diff --git a/meta-fsl-ppc/recipes-dpaa/eth-config/eth-config_git.bb b/meta-fsl-ppc/recipes-dpaa/eth-config/eth-config_git.bb new file mode 100644 index 00000000..ac25013a --- /dev/null +++ b/meta-fsl-ppc/recipes-dpaa/eth-config/eth-config_git.bb | |||
@@ -0,0 +1,19 @@ | |||
1 | DESCRIPTION = "Ethernet Configuration Files" | ||
2 | SECTION = "eth-config" | ||
3 | LICENSE = "Freescale-EULA" | ||
4 | LIC_FILES_CHKSUM = "file://COPYING;md5=cf02dc8eb5ac4a76f3812826520dea87" | ||
5 | |||
6 | PR = "r2" | ||
7 | |||
8 | SRC_URI = "git://git.freescale.com/ppc/sdk/eth-config.git" | ||
9 | SRCREV = "c255231fb606bff18390da3b26e1ee9fca55e4e6" | ||
10 | |||
11 | S = "${WORKDIR}/git" | ||
12 | |||
13 | do_install() { | ||
14 | install -d ${D}/etc/fmc/config | ||
15 | install -m 644 ${S}/*.xml ${D}/etc/fmc/config | ||
16 | install -d ${D}/etc/fmc/config/shared_mac | ||
17 | install -m 644 ${S}/shared_mac/*.xml ${D}/etc/fmc/config/shared_mac | ||
18 | install -m 644 ${S}/shared_mac/README ${D}/etc/fmc/config/shared_mac | ||
19 | } | ||
diff --git a/meta-fsl-ppc/recipes-dpaa/flib/flib_git.bb b/meta-fsl-ppc/recipes-dpaa/flib/flib_git.bb new file mode 100644 index 00000000..fb3f6987 --- /dev/null +++ b/meta-fsl-ppc/recipes-dpaa/flib/flib_git.bb | |||
@@ -0,0 +1,15 @@ | |||
1 | DESCRIPTION = "Foundation Library" | ||
2 | SECTION = "flib" | ||
3 | LICENSE = "BSD & GPLv2" | ||
4 | LIC_FILES_CHKSUM = "file://COPYING;md5=3f16fa8e677e45af3127c5c4bafc3c00" | ||
5 | |||
6 | SRC_URI = "git://git.freescale.com/ppc/sdk/flib.git" | ||
7 | SRCREV = "ff692ad3c286a07717c6677177825889fe17d450" | ||
8 | |||
9 | S = "${WORKDIR}/git" | ||
10 | |||
11 | do_install(){ | ||
12 | oe_runmake install DESTDIR=${D} | ||
13 | } | ||
14 | |||
15 | ALLOW_EMPTY_${PN} = "1" | ||
diff --git a/meta-fsl-ppc/recipes-dpaa/fm-ucode/fm-ucode_git.bb b/meta-fsl-ppc/recipes-dpaa/fm-ucode/fm-ucode_git.bb new file mode 100644 index 00000000..76d00b99 --- /dev/null +++ b/meta-fsl-ppc/recipes-dpaa/fm-ucode/fm-ucode_git.bb | |||
@@ -0,0 +1,46 @@ | |||
1 | DESCRIPTION = "Fman microcode binary" | ||
2 | SECTION = "fm-ucode" | ||
3 | LICENSE = "Freescale-EULA" | ||
4 | LIC_FILES_CHKSUM = "file://EULA;md5=60037ccba533a5995e8d1a838d85799c" | ||
5 | |||
6 | PR = "r1" | ||
7 | |||
8 | COMPATIBLE_MACHINE = "(p1023rdb|p2041rdb|p3041ds|p4080ds|p5020ds|p5040ds|p5020ds-64b|p5040ds-64b|b4420qds|b4420qds-64b|b4860qds|b4860qds-64b|t4160qds|t4160qds-64b|t4240qds|t4240qds-64b)" | ||
9 | inherit deploy | ||
10 | |||
11 | SRC_URI = "git://git.freescale.com/ppc/sdk/fm-ucode.git" | ||
12 | SRCREV = "4ca0e41de225b34962e1517c2c75bbb31a381e1a" | ||
13 | |||
14 | S = "${WORKDIR}/git" | ||
15 | |||
16 | ALLOW_EMPTY_${PN} = "1" | ||
17 | do_install () { | ||
18 | case ${MACHINE} in | ||
19 | b4420qds|b4420qds-64b|b4860qds|b4860qds-64b) UCODE=b4860qds;; | ||
20 | t4240qds|t4240qds-64b|t4160qds|t4160qds-64b) UCODE=t4240qds;; | ||
21 | p5020ds|p5020ds-64b) UCODE=p5020ds;; | ||
22 | p5040ds|p5040ds-64b) UCODE=p5040ds;; | ||
23 | *) UCODE=${MACHINE};; | ||
24 | esac | ||
25 | UCODE=`echo $UCODE | sed -e 's,[a-zA-Z]*$,,'` | ||
26 | install -d ${D}/boot | ||
27 | install -m 644 fsl_fman_ucode_${UCODE}*.bin ${D}/boot/ | ||
28 | } | ||
29 | |||
30 | do_deploy () { | ||
31 | case ${MACHINE} in | ||
32 | b4420qds|b4420qds-64b|b4860qds|b4860qds-64b) UCODE=b4860qds;; | ||
33 | t4240qds|t4240qds-64b|t4160qds|t4160qds-64b) UCODE=t4240qds;; | ||
34 | p5020ds|p5020ds-64b) UCODE=p5020ds;; | ||
35 | p5040ds|p5040ds-64b) UCODE=p5040ds;; | ||
36 | *) UCODE=${MACHINE};; | ||
37 | esac | ||
38 | UCODE=`echo $UCODE | sed -e 's,[a-zA-Z]*$,,'` | ||
39 | install -d ${DEPLOYDIR}/ | ||
40 | install -m 644 fsl_fman_ucode_${UCODE}*.bin ${DEPLOYDIR}/ | ||
41 | } | ||
42 | addtask deploy before do_build after do_install | ||
43 | |||
44 | PACKAGES += "${PN}-image" | ||
45 | FILES_${PN}-image += "/boot" | ||
46 | |||
diff --git a/meta-fsl-ppc/recipes-dpaa/fmc/fmc_git.bb b/meta-fsl-ppc/recipes-dpaa/fmc/fmc_git.bb new file mode 100644 index 00000000..20f93f65 --- /dev/null +++ b/meta-fsl-ppc/recipes-dpaa/fmc/fmc_git.bb | |||
@@ -0,0 +1,53 @@ | |||
1 | DESCRIPTION = "Frame Manager Configuration tool" | ||
2 | SECTION = "fmc" | ||
3 | LICENSE = "MIT" | ||
4 | LIC_FILES_CHKSUM = "file://COPYING;md5=a504ab5a8ff235e67c7301214749346c" | ||
5 | |||
6 | PR = "r2" | ||
7 | |||
8 | SRC_URI = "git://git.freescale.com/ppc/sdk/fmc.git" | ||
9 | SRCREV = "f2e1a831a96f1d04d3d5a5970d2e54c38098cf39" | ||
10 | |||
11 | DEPENDS = "libxml2 fmlib tclap" | ||
12 | |||
13 | PACKAGE_ARCH = "${MACHINE_ARCH}" | ||
14 | |||
15 | S = "${WORKDIR}/git" | ||
16 | |||
17 | EXTRA_OEMAKE = 'FMD_USPACE_HEADER_PATH="${STAGING_INCDIR}/fmd" \ | ||
18 | FMD_USPACE_LIB_PATH="${STAGING_LIBDIR}" LIBXML2_HEADER_PATH="${STAGING_INCDIR}/libxml2" \ | ||
19 | TCLAP_HEADER_PATH="${STAGING_INCDIR}" ' | ||
20 | EXTRA_OEMAKE_virtclass-native = 'FMCHOSTMODE=1 FMD_USPACE_HEADER_PATH="${STAGING_INCDIR}/fmd" \ | ||
21 | FMD_USPACE_LIB_PATH="${STAGING_LIBDIR}" LIBXML2_HEADER_PATH="${STAGING_INCDIR}/libxml2" \ | ||
22 | TCLAP_HEADER_PATH="${STAGING_INCDIR}" ' | ||
23 | |||
24 | PARALLEL_MAKE = "" | ||
25 | |||
26 | do_compile () { | ||
27 | if [ "b4860qds" = "${MACHINE}" ] || [ "b4420qds" = "${MACHINE}" ];then | ||
28 | EXTRA_OEMAKE_PLATFORM="b4860qds" | ||
29 | elif [ "t4240qds" = "${MACHINE}" ] || [ "t4160qds" = "${MACHINE}" ];then | ||
30 | EXTRA_OEMAKE_PLATFORM="t4240qds" | ||
31 | elif [ "p1023rds" = "${MACHINE}" ];then | ||
32 | EXTRA_OEMAKE_PLATFORM="p1023rds" | ||
33 | else | ||
34 | EXTRA_OEMAKE_PLATFORM="" | ||
35 | fi | ||
36 | oe_runmake MACHINE=${EXTRA_OEMAKE_PLATFORM} -C source | ||
37 | } | ||
38 | |||
39 | do_install () { | ||
40 | install -d ${D}/${bindir} | ||
41 | install -m 755 ${S}/source/fmc ${D}/${bindir}/fmc | ||
42 | |||
43 | install -d ${D}/etc/fmc/config | ||
44 | install -m 644 ${S}/etc/fmc/config/hxs_pdl_v3.xml ${D}/etc/fmc/config | ||
45 | |||
46 | install -d ${D}/${includedir}/fmc | ||
47 | install ${S}/source/fmc.h ${D}/${includedir}/fmc | ||
48 | |||
49 | install -d ${D}/${libdir} | ||
50 | install ${S}/source/libfmc.a ${D}/${libdir} | ||
51 | } | ||
52 | |||
53 | BBCLASSEXTEND = "native" | ||
diff --git a/meta-fsl-ppc/recipes-dpaa/fmlib/files/0001-fm-lib-make-the-library-install-path-configurable.patch b/meta-fsl-ppc/recipes-dpaa/fmlib/files/0001-fm-lib-make-the-library-install-path-configurable.patch new file mode 100644 index 00000000..4894ce3b --- /dev/null +++ b/meta-fsl-ppc/recipes-dpaa/fmlib/files/0001-fm-lib-make-the-library-install-path-configurable.patch | |||
@@ -0,0 +1,43 @@ | |||
1 | From 67b539d256520f95f3c8101f4605ea6d496982df Mon Sep 17 00:00:00 2001 | ||
2 | From: Zhenhua Luo <b19537@freescale.com> | ||
3 | Date: Thu, 18 Oct 2012 17:28:00 +0300 | ||
4 | Subject: [PATCH] fm-lib: make the library install path configurable | ||
5 | |||
6 | currently library for both 32bit target and 64bit target | ||
7 | is installed in /usr/lib folder, add a variable to make the | ||
8 | install path configurable | ||
9 | |||
10 | Signed-off-by: Zhenhua Luo <b19537@freescale.com> | ||
11 | --- | ||
12 | Makefile | 8 +++++--- | ||
13 | 1 file changed, 5 insertions(+), 3 deletions(-) | ||
14 | |||
15 | diff --git a/Makefile b/Makefile | ||
16 | index 06fe930..d59f44a 100644 | ||
17 | --- a/Makefile | ||
18 | +++ b/Makefile | ||
19 | @@ -59,6 +59,8 @@ endif | ||
20 | |||
21 | INSTALL?=install | ||
22 | |||
23 | +LIB_DEST_DIR?=$(PREFIX)/lib | ||
24 | + | ||
25 | # Don't forget to increment .version before doing a new release! | ||
26 | FM_LIB_VERSION:=$(shell cat .version) | ||
27 | |||
28 | @@ -118,9 +120,9 @@ archive: all .version | ||
29 | |||
30 | install-%: %.a | ||
31 | @(echo "Installing...") | ||
32 | - @($(INSTALL) -d $(DESTDIR)$(PREFIX)/lib) | ||
33 | - @($(INSTALL) $< $(DESTDIR)$(PREFIX)/lib) | ||
34 | - @(ln -s $(DESTDIR)$(PREFIX)/lib/$< $(DESTDIR)$(PREFIX)/lib/libfm.a) | ||
35 | + @($(INSTALL) -d $(DESTDIR)$(LIB_DEST_DIR)) | ||
36 | + @($(INSTALL) $< $(DESTDIR)$(LIB_DEST_DIR)) | ||
37 | + @(ln -s $(DESTDIR)$(LIB_DEST_DIR)/$< $(DESTDIR)$(LIB_DEST_DIR)/libfm.a) | ||
38 | @(cp -r -p ./include $(DESTDIR)$(PREFIX)) | ||
39 | @($(INSTALL) -d $(DESTDIR)$(PREFIX)/share/doc/fm-lib-$(FM_LIB_VERSION)) | ||
40 | @($(INSTALL) $(FM_LIB_DOCFILES) $(DESTDIR)$(PREFIX)/share/doc/fm-lib-$(FM_LIB_VERSION)) | ||
41 | -- | ||
42 | 1.7.9.5 | ||
43 | |||
diff --git a/meta-fsl-ppc/recipes-dpaa/fmlib/fmlib_git.bb b/meta-fsl-ppc/recipes-dpaa/fmlib/fmlib_git.bb new file mode 100644 index 00000000..7a7b8f26 --- /dev/null +++ b/meta-fsl-ppc/recipes-dpaa/fmlib/fmlib_git.bb | |||
@@ -0,0 +1,43 @@ | |||
1 | DESCRIPTION = "Frame Manager User Space Library" | ||
2 | SECTION = "fman" | ||
3 | LICENSE = "BSD & GPLv2" | ||
4 | LIC_FILES_CHKSUM = "file://COPYING;md5=3f16fa8e677e45af3127c5c4bafc3c00" | ||
5 | |||
6 | PR = "r1" | ||
7 | |||
8 | DEPENDS = "linux-libc-headers" | ||
9 | DEPENDS_virtclass-native = "" | ||
10 | |||
11 | SRC_URI = "git://git.freescale.com/ppc/sdk/fmlib.git" | ||
12 | SRCREV = "7d843485bdac963d98f81773c0f3cb15936e09da" | ||
13 | |||
14 | S = "${WORKDIR}/git" | ||
15 | |||
16 | TARGET_ARCH_FMLIB = "${DEFAULTTUNE}" | ||
17 | TARGET_ARCH_FMLIB_e5500 = "ppc32e5500" | ||
18 | TARGET_ARCH_FMLIB_e6500 = "ppc32e6500" | ||
19 | COMPATIBLE_HOST_fslmachine = ".*" | ||
20 | COMPATIBLE_HOST ?= "(none)" | ||
21 | |||
22 | EXTRA_OEMAKE = "DESTDIR=${D} PREFIX=${prefix} LIB_DEST_DIR=${libdir} \ | ||
23 | CROSS_COMPILE=${TARGET_PREFIX} KERNEL_SRC=${STAGING_EXECPREFIXDIR}" | ||
24 | |||
25 | do_compile () { | ||
26 | oe_runmake libfm-${TARGET_ARCH_FMLIB}.a | ||
27 | } | ||
28 | |||
29 | do_compile_virtclass-native () { | ||
30 | } | ||
31 | |||
32 | do_install () { | ||
33 | oe_runmake install-libfm-${TARGET_ARCH_FMLIB} | ||
34 | } | ||
35 | |||
36 | do_install_virtclass-native () { | ||
37 | install -d ${D}/${includedir} | ||
38 | cp -rf ${S}/include/* ${D}/${includedir} | ||
39 | } | ||
40 | |||
41 | ALLOW_EMPTY_${PN} = "1" | ||
42 | |||
43 | BBCLASSEXTEND = "native" | ||
diff --git a/meta-fsl-ppc/recipes-dpaa/usdpaa/usdpaa_git.bb b/meta-fsl-ppc/recipes-dpaa/usdpaa/usdpaa_git.bb new file mode 100644 index 00000000..48e860f7 --- /dev/null +++ b/meta-fsl-ppc/recipes-dpaa/usdpaa/usdpaa_git.bb | |||
@@ -0,0 +1,49 @@ | |||
1 | DESCRIPTION = "User-Space Data-Path Acceleration Architecture drivers" | ||
2 | LICENSE = "BSD & GPLv2" | ||
3 | LIC_FILES_CHKSUM = "file://Makefile;endline=30;md5=39e58bedc879163c9338596e52df5b1f" | ||
4 | PR = "r4" | ||
5 | |||
6 | inherit pkgconfig | ||
7 | |||
8 | DEPENDS = "libxml2 libedit ncurses readline flib fmc" | ||
9 | RDEPENDS_${PN} = "libgcc bash" | ||
10 | |||
11 | SRC_URI = "git://git.freescale.com/ppc/sdk/usdpaa.git" | ||
12 | SRCREV = "97fe45d9697ef339e10a1885539b23fa7fcb113e" | ||
13 | |||
14 | S = "${WORKDIR}/git" | ||
15 | |||
16 | EXTRA_OEMAKE = 'CC="${CC}" LD="${LD}" AR="${AR}"' | ||
17 | export ARCH="${TARGET_ARCH}" | ||
18 | |||
19 | do_compile_prepend () { | ||
20 | case ${MACHINE} in | ||
21 | b4420qds|b4420qds-64b|b4860qds|b4860qds-64b) SOC=B4860;; | ||
22 | t4240qds|t4240qds-64b) SOC=T4240;; | ||
23 | p1023rdb) SOC=P1023;; | ||
24 | *) SOC=P4080;; | ||
25 | esac | ||
26 | export FMC_EXTRA_CFLAGS="-I ${STAGING_INCDIR}/fmc" | ||
27 | export FMLIB_EXTRA_CFLAGS="-I ${STAGING_INCDIR}/fmd \ | ||
28 | -I ${STAGING_INCDIR}/fmd/Peripherals \ | ||
29 | -I ${STAGING_INCDIR}/fmd/integrations \ | ||
30 | -D $SOC" | ||
31 | |||
32 | export LIBXML2_CFLAGS="$(pkg-config --cflags libxml-2.0)" | ||
33 | export LIBXML2_LDFLAGS="$(pkg-config --libs --static libxml-2.0)" | ||
34 | export LIBEDIT_CFLAGS="$(pkg-config --cflags libedit)" | ||
35 | export LIBEDIT_LDFLAGS="$(pkg-config --libs --static libedit)" | ||
36 | } | ||
37 | |||
38 | do_install () { | ||
39 | oe_runmake install DESTDIR=${D} | ||
40 | } | ||
41 | |||
42 | PARALLEL_MAKE_pn-${PN} = "" | ||
43 | FILES_${PN} += "/root/SOURCE_THIS /usr/etc/" | ||
44 | |||
45 | PACKAGE_ARCH = "${MACHINE_ARCH}" | ||
46 | |||
47 | COMPATIBLE_HOST_fslmachine = ".*" | ||
48 | COMPATIBLE_HOST ?= "(none)" | ||
49 | |||