diff options
Diffstat (limited to 'recipes-extended')
-rw-r--r-- | recipes-extended/skmm-ep/skmm-ep/skmm-ep-remove-duplicated-pa_to_va-and-va_to_pa.patch | 40 | ||||
-rw-r--r-- | recipes-extended/skmm-ep/skmm-ep_git.bb | 1 |
2 files changed, 41 insertions, 0 deletions
diff --git a/recipes-extended/skmm-ep/skmm-ep/skmm-ep-remove-duplicated-pa_to_va-and-va_to_pa.patch b/recipes-extended/skmm-ep/skmm-ep/skmm-ep-remove-duplicated-pa_to_va-and-va_to_pa.patch new file mode 100644 index 00000000..afa7e894 --- /dev/null +++ b/recipes-extended/skmm-ep/skmm-ep/skmm-ep-remove-duplicated-pa_to_va-and-va_to_pa.patch | |||
@@ -0,0 +1,40 @@ | |||
1 | skmm-ep: remove duplicated definition | ||
2 | |||
3 | Remove the duplicated definition to fix the following build errors: | ||
4 | | apps/skmm/lib/skmm_sram.c:42:18: error: redefinition of 'pa_to_va' | ||
5 | | apps/skmm/lib/skmm_sram.c:51:20: error: redefinition of 'va_to_pa' | ||
6 | |||
7 | Upstream-Status: Pending | ||
8 | |||
9 | Signed-off-by: Zhenhua Luo <zhenhua.luo@freescale.com> | ||
10 | |||
11 | diff --git a/apps/skmm/lib/skmm_sram.c b/apps/skmm/lib/skmm_sram.c | ||
12 | index 2d84d93..6ab0421 100644 | ||
13 | --- a/apps/skmm/lib/skmm_sram.c | ||
14 | +++ b/apps/skmm/lib/skmm_sram.c | ||
15 | @@ -39,24 +39,6 @@ | ||
16 | static phys_addr_t sram_phys_addr; | ||
17 | static va_addr_t sram_virt_addr; | ||
18 | |||
19 | -inline va_addr_t pa_to_va(phys_addr_t addr) | ||
20 | -{ | ||
21 | - va_addr_t offset; | ||
22 | - | ||
23 | - offset = (va_addr_t)(addr - sram_phys_addr); | ||
24 | - | ||
25 | - return sram_virt_addr + offset; | ||
26 | -} | ||
27 | - | ||
28 | -inline phys_addr_t va_to_pa(va_addr_t addr) | ||
29 | -{ | ||
30 | - phys_addr_t offset; | ||
31 | - | ||
32 | - offset = (phys_addr_t)(addr - sram_virt_addr); | ||
33 | - | ||
34 | - return sram_phys_addr + offset; | ||
35 | -} | ||
36 | - | ||
37 | static int setup_law_for_plt_sram(phys_addr_t l2sram, u32 *size) | ||
38 | { | ||
39 | int fd; | ||
40 | -- | ||
diff --git a/recipes-extended/skmm-ep/skmm-ep_git.bb b/recipes-extended/skmm-ep/skmm-ep_git.bb index 13d4c08a..00466a6f 100644 --- a/recipes-extended/skmm-ep/skmm-ep_git.bb +++ b/recipes-extended/skmm-ep/skmm-ep_git.bb | |||
@@ -10,6 +10,7 @@ PACKAGE_ARCH = "${MACHINE_ARCH}" | |||
10 | SRC_URI = "git://git.freescale.com/ppc/sdk/skmm-ep.git;nobranch=1 \ | 10 | SRC_URI = "git://git.freescale.com/ppc/sdk/skmm-ep.git;nobranch=1 \ |
11 | file://add-two-missing-header-files.patch \ | 11 | file://add-two-missing-header-files.patch \ |
12 | file://skmm-ep-fix-the-inline-function-definition-with-gcc-.patch \ | 12 | file://skmm-ep-fix-the-inline-function-definition-with-gcc-.patch \ |
13 | file://skmm-ep-remove-duplicated-pa_to_va-and-va_to_pa.patch \ | ||
13 | " | 14 | " |
14 | SRCREV = "27156a6621c8f6d7f98210b1ca5cd97bde926875" | 15 | SRCREV = "27156a6621c8f6d7f98210b1ca5cd97bde926875" |
15 | 16 | ||