diff options
author | Appana Durga Kedareswara rao <appana.durga.rao@xilinx.com> | 2020-03-03 18:01:07 +0530 |
---|---|---|
committer | Mark Hatle <mark.hatle@xilinx.com> | 2020-03-03 19:41:29 -0800 |
commit | c8e50c5ae1eff8cb91a832e7c720eba6f28e3054 (patch) | |
tree | 488297b21f7e26f9f174321a167ff2f8dee13da6 /meta-xilinx-standalone | |
parent | c82d98f2167aadfeb134d92f007dedf5919d9507 (diff) | |
download | meta-xilinx-c8e50c5ae1eff8cb91a832e7c720eba6f28e3054.tar.gz |
meta-xilinx-standalone: recipes-libraries: lwip: Add recipe for lwip
This recipe compiles the lwip library.
Signed-off-by: Appana Durga Kedareswara rao <appana.durga.rao@xilinx.com>
Signed-off-by: Mark Hatle <mark.hatle@xilinx.com>
Diffstat (limited to 'meta-xilinx-standalone')
-rw-r--r-- | meta-xilinx-standalone/recipes-libraries/lwip_git.bb | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/meta-xilinx-standalone/recipes-libraries/lwip_git.bb b/meta-xilinx-standalone/recipes-libraries/lwip_git.bb new file mode 100644 index 00000000..23ca0b45 --- /dev/null +++ b/meta-xilinx-standalone/recipes-libraries/lwip_git.bb | |||
@@ -0,0 +1,22 @@ | |||
1 | inherit esw python3native | ||
2 | |||
3 | ESW_COMPONENT_SRC = "/ThirdParty/sw_services/lwip211/src/" | ||
4 | ESW_COMPONENT_NAME = "liblwip211.a" | ||
5 | |||
6 | DEPENDS += "dtc-native python3-dtc-native libxil python3-pyyaml-native" | ||
7 | |||
8 | do_configure_prepend() { | ||
9 | # This script should also not rely on relative paths and such | ||
10 | cd ${S} | ||
11 | nativepython3 ${S}/scripts/lib_parser.py -d ${DTBFILE} -o ${OECMAKE_SOURCEPATH} | ||
12 | } | ||
13 | |||
14 | do_install() { | ||
15 | install -d ${D}${libdir} | ||
16 | install -d ${D}${includedir} | ||
17 | install -m 0755 ${B}/${ESW_COMPONENT_NAME} ${D}${libdir} | ||
18 | install -m 0644 ${B}/include/*.h ${D}${includedir} | ||
19 | cp -r ${B}/include/arch/ ${D}${includedir} | ||
20 | cp -r ${B}/include/include/lwip/ ${D}${includedir} | ||
21 | cp -r ${B}/include/include/netif/ ${D}${includedir} | ||
22 | } | ||