Patchwork [meta-fsl-ppc] fmc: add missing FMCDummyDriver.o in Makefile

login
register
mail settings
Submitter Ting Liu
Date Jan. 27, 2014, 7:17 a.m.
Message ID <1390807054-10260-1-git-send-email-b28495@freescale.com>
Download mbox | patch
Permalink /patch/65871/
State Superseded
Delegated to: Zhenhua Luo
Headers show

Comments

Ting Liu - Jan. 27, 2014, 7:17 a.m.
From: Ting Liu <b28495@freescale.com>

Fix the linking error:
| source/fmc_exec.c:880: undefined reference to 'FM_PCD_CcRootBuild'

Signed-off-by: Ting Liu <b28495@freescale.com>
---
 .../add-missing-FMCDummyDriver.o-in-Makefile.patch | 27 ++++++++++++++++++++++
 recipes-dpaa/fmc/fmc_git.bb                        |  4 +++-
 2 files changed, 30 insertions(+), 1 deletion(-)
 create mode 100644 recipes-dpaa/fmc/fmc/add-missing-FMCDummyDriver.o-in-Makefile.patch

Patch

diff --git a/recipes-dpaa/fmc/fmc/add-missing-FMCDummyDriver.o-in-Makefile.patch b/recipes-dpaa/fmc/fmc/add-missing-FMCDummyDriver.o-in-Makefile.patch
new file mode 100644
index 0000000..e6e09cf
--- /dev/null
+++ b/recipes-dpaa/fmc/fmc/add-missing-FMCDummyDriver.o-in-Makefile.patch
@@ -0,0 +1,27 @@ 
+From 96894ed96bb7b658cce234233c44f22cdd00199a Mon Sep 17 00:00:00 2001
+From: Ting Liu <b28495@freescale.com>
+Date: Sun, 26 Jan 2014 11:15:45 +0800
+Subject: [PATCH] add missing FMCDummyDriver.o in Makefile
+
+Signed-off-by: Ting Liu <b28495@freescale.com>
+---
+ source/Makefile | 3 ++-
+ 1 file changed, 2 insertions(+), 1 deletion(-)
+
+diff --git a/source/Makefile b/source/Makefile
+index b00fe5f..975eb39 100644
+--- a/source/Makefile
++++ b/source/Makefile
+@@ -94,7 +94,8 @@ objects = ./libfmc.o ./fmc_exec.o                                       \
+      ./FMCPCDModel.o ./FMCCModelOutput.o                                \
+      ./FMCTaskDef.o ./FMCUtils.o ./FMCGenericError.o                    \
+      ./spa/dll.o ./spa/fm_sp.o ./spa/fm_sp_assembler.tab.o              \
+-     ./spa/fm_sp_private.o ./spa/htbl.o ./spa/lex._fmsp_assembler_yy.o
++     ./spa/fm_sp_private.o ./spa/htbl.o ./spa/lex._fmsp_assembler_yy.o  \
++     ./FMCDummyDriver.o
+ 
+ headers = fmc.h FMCCFGReader.h FMCCModelOutput.h FMCGenericError.h \
+           FMCPCDModel.h FMCPCDReader.h FMCPDLReader.h FMCSP.h      \
+-- 
+1.8.3.2
+
diff --git a/recipes-dpaa/fmc/fmc_git.bb b/recipes-dpaa/fmc/fmc_git.bb
index 9d98fec..9651abb 100644
--- a/recipes-dpaa/fmc/fmc_git.bb
+++ b/recipes-dpaa/fmc/fmc_git.bb
@@ -5,7 +5,9 @@  LIC_FILES_CHKSUM = "file://COPYING;md5=a504ab5a8ff235e67c7301214749346c"
 
 PR = "r2"
 
-SRC_URI = "git://git.freescale.com/ppc/sdk/fmc.git;nobranch=1"
+SRC_URI = "git://git.freescale.com/ppc/sdk/fmc.git;nobranch=1 \
+    file://add-missing-FMCDummyDriver.o-in-Makefile.patch \
+"
 SRCREV = "363f8497cf04d242c477b12a21f679b2ec9e3fa4"
 
 DEPENDS = "libxml2 fmlib tclap"