diff options
Diffstat (limited to 'meta-xilinx-standalone-experimental/recipes-libraries/lwip_git.bb')
| -rw-r--r-- | meta-xilinx-standalone-experimental/recipes-libraries/lwip_git.bb | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/meta-xilinx-standalone-experimental/recipes-libraries/lwip_git.bb b/meta-xilinx-standalone-experimental/recipes-libraries/lwip_git.bb new file mode 100644 index 00000000..7e31b32e --- /dev/null +++ b/meta-xilinx-standalone-experimental/recipes-libraries/lwip_git.bb | |||
| @@ -0,0 +1,23 @@ | |||
| 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 | DEPENDS_append_xilinx-freertos = "freertos10-xilinx" | ||
| 8 | |||
| 9 | do_configure_prepend() { | ||
| 10 | # This script should also not rely on relative paths and such | ||
| 11 | cd ${S} | ||
| 12 | nativepython3 ${S}/scripts/lib_parser.py -d ${DTBFILE} -o ${OECMAKE_SOURCEPATH} | ||
| 13 | } | ||
| 14 | |||
| 15 | do_install() { | ||
| 16 | install -d ${D}${libdir} | ||
| 17 | install -d ${D}${includedir} | ||
| 18 | install -m 0755 ${B}/${ESW_COMPONENT_NAME} ${D}${libdir} | ||
| 19 | install -m 0644 ${B}/include/*.h ${D}${includedir} | ||
| 20 | cp -r ${B}/include/arch/ ${D}${includedir} | ||
| 21 | cp -r ${B}/include/include/lwip/ ${D}${includedir} | ||
| 22 | cp -r ${B}/include/include/netif/ ${D}${includedir} | ||
| 23 | } | ||
