diff options
Diffstat (limited to 'recipes-bsp/ipc/ipc-modules.inc')
-rw-r--r-- | recipes-bsp/ipc/ipc-modules.inc | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/recipes-bsp/ipc/ipc-modules.inc b/recipes-bsp/ipc/ipc-modules.inc new file mode 100644 index 0000000..015a91b --- /dev/null +++ b/recipes-bsp/ipc/ipc-modules.inc | |||
@@ -0,0 +1,39 @@ | |||
1 | SUMMARY = "Linux IPC KERNEL MODULE " | ||
2 | DESCRIPTION = "DSP boot application and ipc test application" | ||
3 | LICENSE = "BSD" | ||
4 | LIC_FILES_CHKSUM = "file://COPYING;md5=fa38cd73d71527dc6efb546474f64d10" | ||
5 | |||
6 | require ipc.inc | ||
7 | |||
8 | inherit module | ||
9 | |||
10 | S = "${WORKDIR}/git" | ||
11 | python () { | ||
12 | ma = d.getVar("DISTRO_FEATURES", True) | ||
13 | arch = d.getVar("OVERRIDES", True) | ||
14 | |||
15 | # the : after the arch is to skip the message on 64b | ||
16 | if not "multiarch" in ma and ("e5500:" in arch or "e6500:" in arch): | ||
17 | raise bb.parse.SkipPackage("Building the kernel for this arch requires multiarch to be in DISTRO_FEATURES") | ||
18 | |||
19 | promote_kernel = d.getVar('BUILD_64BIT_KERNEL') | ||
20 | |||
21 | if promote_kernel == "1": | ||
22 | d.setVar('KERNEL_CC_append', ' -m64') | ||
23 | d.setVar('KERNEL_LD_append', ' -melf64ppc') | ||
24 | |||
25 | error_qa = d.getVar('ERROR_QA', True) | ||
26 | if 'arch' in error_qa: | ||
27 | d.setVar('ERROR_QA', error_qa.replace(' arch', '')) | ||
28 | } | ||
29 | |||
30 | do_compile_prepend () { | ||
31 | cd ${S}/kernel | ||
32 | case ${MACHINE} in | ||
33 | bsc9132qds|bsc9131rdb) SOC=B913x;; | ||
34 | b4860qds|b4420qds) SOC=B4860;; | ||
35 | esac | ||
36 | } | ||
37 | |||
38 | INHIBIT_PACKAGE_STRIP = "1" | ||
39 | |||