Commit 65528d32 authored by Oliver Horst's avatar Oliver Horst
Browse files

[chg] Added baremetal build support

- Renamed xil* targets to libxil*
- Introduced COMPATIBLE_MACHINE statements
- Added toki-system inheritance where needed
parent c8648195
PROVIDES += " virtual/bootloader"
INHIBIT_DEFAULT_DEPS = "1"
BB_LIMITEDDEPS = "1"
DEPENDS = ""
STAGINGCC = "gcc-cross-initial-${TARGET_ARCH}"
STAGINGCC_class-nativesdk = "gcc-crosssdk-initial-${SDK_SYS}"
BIF_PARTITION_ATTR_toki = "fsbl pmu bitstream amp-master"
BIF_PARTITION_ATTR[amp-master] = "destination_cpu=a53-0"
......
......@@ -10,6 +10,8 @@ IMAGE_ROOTFS_ALIGNMENT = "4096"
WKS_FILE = "sdimage-zcu102-zynqmp.wks"
BB_LIMITEDDEPS = "1"
do_image_wic[depends] += " qemu-devicetrees:do_deploy xilinx-bootbin:do_deploy"
python __anonymous() {
......
......@@ -3,6 +3,5 @@ require freertos-portable-common.inc
S = "${WORKDIR}/git/GCC/ARM_CA53_64_BIT/include"
inherit toki-system
inherit toki-externalsrc
EXTERNALSRC = "${@relative_externalsrc(d, "components/freertos-portable/GCC/ARM_CA53_64_BIT/include")}"
......@@ -2,9 +2,10 @@ require freertos-portable-common.inc
S = "${WORKDIR}/git/GCC/ARM_CA53_64_BIT"
inherit toki-system
inherit toki-externalsrc
EXTERNALSRC = "${@relative_externalsrc(d, "components/freertos-portable/GCC/ARM_CA53_64_BIT")}"
DEPENDS = "freertos-headers xil-headers"
EXTRA_OECMAKE_append = " -DWITH_HEADERS:BOOL=FALSE"
DEPENDS_append = " libxil freertos-headers toki-perfmon toki-libc-headers toki-hal-headers"
DEPENDS_append_zcu102-zynqmp = " xil-headers"
DEPENDS_append_zcu102-zynqmp = " libxil-headers"
DEPENDS_append_zcu102-zynqmp = " xil"
DEPENDS_append_zcu102-zynqmp = " libxil"
......@@ -10,8 +10,6 @@ COMPATIBLE_MACHINE = "zcu102-zynqmp"
inherit cmake
TARGET_CFLAGS += "-nostdlib"
FILES_${PN}-dev += "${libdir}/cmake/*"
EXTRA_OECMAKE = ""
......@@ -3,6 +3,5 @@ require conf/distro/include/target-configs.inc
S = "${WORKDIR}/git/${MACHINE}/${TOKI_OS}/${TOKI_CONFIG}/libxil/include"
inherit toki-system
inherit toki-externalsrc
EXTERNALSRC = "${@relative_externalsrc(d, "configs/${MACHINE}/${TOKI_OS}/${TOKI_CONFIG}/libxil/include")}"
......@@ -2,9 +2,10 @@ require conf/distro/include/target-configs.inc
S = "${WORKDIR}/git/${MACHINE}/${TOKI_OS}/${TOKI_CONFIG}/libxil"
inherit toki-system
inherit toki-externalsrc
EXTERNALSRC = "${@relative_externalsrc(d, "configs/${MACHINE}/${TOKI_OS}/${TOKI_CONFIG}/libxil")}"
DEPENDS = "xil-headers"
EXTRA_OECMAKE_append = " -DWITH_HEADERS:BOOL=FALSE"
DEPENDS += " libxil-headers toki-libc-headers toki-libc-printf-headers"
require xil-common.inc
require libxil-common.inc
S = "${WORKDIR}/git/include"
inherit toki-system
inherit toki-externalsrc
EXTERNALSRC = "${@relative_externalsrc(d, "components/libxil/include")}"
DEPENDS += "xil-config-headers"
DEPENDS += " libxil-config-headers"
require xil-common.inc
require libxil-common.inc
S = "${WORKDIR}/git"
inherit toki-system
inherit toki-externalsrc
EXTERNALSRC = "${@relative_externalsrc(d, "components/libxil")}"
DEPENDS = "xil-config"
EXTRA_OECMAKE_append = " -DWITH_HEADERS:BOOL=FALSE"
DEPENDS += " libxil-config toki-libc-headers toki-libc-printf"
LICENSE = "CLOSED"
LIC_FILES_CHKSUM = ""
SRC_URI = "git://git.fortiss.org/toki/components/xilpm.git;protocol=https"
SRC_URI = "git://git.fortiss.org/toki/components/libxilpm.git;protocol=https"
PV = "0.0+git${SRCPV}"
SRCREV = "ce4f299bc441803adb02db9a203a5cad36c992c0"
......@@ -13,4 +13,3 @@ inherit cmake
FILES_${PN}-dev += "${libdir}/cmake/*"
EXTRA_OECMAKE = ""
require conf/distro/include/target-configs.inc
S = "${WORKDIR}/git/${MACHINE}/${TOKI_OS}/${TOKI_CONFIG}/xilpm"
S = "${WORKDIR}/git/${MACHINE}/${TOKI_OS}/${TOKI_CONFIG}/libxilpm"
inherit toki-system
inherit toki-externalsrc
EXTERNALSRC = "${@relative_externalsrc(d, "configs/${MACHINE}/${TOKI_OS}/${TOKI_CONFIG}/xilpm")}"
#DEPENDS = "xil-config-headers xil-headers"
#EXTRA_OECMAKE_append = " -DWITH_HEADERS:BOOL=FALSE"
EXTERNALSRC = "${@relative_externalsrc(d, "configs/${MACHINE}/${TOKI_OS}/${TOKI_CONFIG}/libxilpm")}"
require libxilpm-common.inc
S = "${WORKDIR}/git/include"
inherit toki-system
inherit toki-externalsrc
EXTERNALSRC = "${@relative_externalsrc(d, "components/libxilpm/include")}"
DEPENDS += " libxil-headers"
require xilpm-common.inc
require libxilpm-common.inc
S = "${WORKDIR}/git"
inherit toki-system
inherit toki-externalsrc
EXTERNALSRC = "${@relative_externalsrc(d, "components/xilpm")}"
DEPENDS = "xilpm-config xilpm-headers xil"
EXTERNALSRC = "${@relative_externalsrc(d, "components/libxilpm")}"
EXTRA_OECMAKE_append = " -DWITH_HEADERS:BOOL=FALSE"
DEPENDS += " libxilpm-config libxilpm-headers libxil toki-libc-headers"
......@@ -2,4 +2,6 @@ require recipes-core/lwip/lwip-common.inc
S = "${WORKDIR}/git/ports/netif/xilinx"
DEPENDS = "lwip xil"
DEPENDS += " lwip libxil"
COMPATIBLE_MACHINE = "zcu102-zynqmp"
DEPENDS += "xil-headers"
DEPENDS_append_freertos-elf += " libxil-headers"
DEPENDS_append_elf += " libxil-headers"
DEPENDS_append_zcu102-zynqmp += " libxil"
DEPENDS_append_zcu102-zynqmp = " libxil-headers"
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment