blob: cf7910b8c541b41da7ef7bba0d914456b00fdd25 (
plain)
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
|
DESCRIPTION = "User-Space Data-Path Acceleration Architecture Demo Applications"
LICENSE = "BSD & GPLv2"
LIC_FILES_CHKSUM = "file://Makefile;endline=30;md5=d2a5d894118910d49993347f3f6e0f1e"
inherit pkgconfig
PACKAGE_ARCH = "${MACHINE_ARCH}"
DEPENDS = "libxml2 libedit ncurses readline fmc usdpaa dpa-offload libnl"
DEPENDS_append_b4860qds = " ipc-ust"
DEPENDS_append_b4420qds = " ipc-ust"
RDEPENDS_${PN} = "libgcc bash"
RDEPENDS_${PN}_append_b4860qds = " ipc-ust"
RDEPENDS_${PN}_append_b4420qds = " ipc-ust"
SRC_URI = "git://git.freescale.com/ppc/sdk/usdpaa/usdpaa-apps;nobranch=1"
SRCREV = "95744440cf214d73884c44c0dbc296e1e4b4c8f4"
S = "${WORKDIR}/git"
EXTRA_OEMAKE = 'CC="${CC}" LD="${LD}" AR="${AR}"'
export ARCH="${TARGET_ARCH}"
SOC ?= "P4080"
SOC_b4 = "B4860"
SOC_t1 = "T1040"
SOC_t2 = "T2080"
SOC_t4 = "T4240"
SOC_p1023rdb = "P1023"
FMAN_VARIANT ?= "P4080"
FMAN_VARIANT_b4 = "FMAN_V3H"
FMAN_VARIANT_t1 = "FMAN_V3L"
FMAN_VARIANT_t2 = "FMAN_V3H"
FMAN_VARIANT_t4 = "FMAN_V3H"
FMAN_VARIANT_p1023rdb = "P1023"
do_compile_prepend () {
export SOC=${SOC}
export FMC_EXTRA_CFLAGS="-I ${STAGING_INCDIR}/fmc"
export FMLIB_EXTRA_CFLAGS="-I ${STAGING_INCDIR}/fmd \
-I ${STAGING_INCDIR}/fmd/Peripherals \
-I ${STAGING_INCDIR}/fmd/integrations \
-D${FMAN_VARIANT}"
export USDPAA_EXTRA_CFLAGS="-I ${STAGING_INCDIR}/usdpaa"
export DPAOFFLOAD_EXTRA_CFLAGS="-I ${STAGING_INCDIR}/dpa-offload"
export LIBNL_EXTRA_CFLAGS="-I ${STAGING_INCDIR}/libnl3"
export LIBNL_EXTRA_LDFLAGS="-lnl-3 -lnl-route-3"
export LIBXML2_CFLAGS="`pkg-config --cflags libxml-2.0`"
export LIBXML2_LDFLAGS="`pkg-config --libs --static libxml-2.0`"
export LIBEDIT_CFLAGS="`pkg-config --cflags libedit`"
export LIBEDIT_LDFLAGS="`pkg-config --libs --static libedit`"
}
do_install () {
export SOC=${SOC}
oe_runmake install DESTDIR=${D}
}
PARALLEL_MAKE_pn-${PN} = ""
FILES_${PN} += "/root/SOURCE_THIS /usr/etc/"
COMPATIBLE_HOST_qoriq-ppc = ".*"
COMPATIBLE_HOST ?= "(none)"
|