mirror of
https://github.com/thead-yocto-mirror/meta-riscv
synced 2026-06-21 08:52:24 +02:00
recipes: Convert to newer override syntax
Signed-off-by: Khem Raj <raj.khem@gmail.com>
This commit is contained in:
@@ -117,7 +117,7 @@ TFTP_SERVER_IP = "127.0.0.1"
|
||||
To use the Microsemi expansion board with your HiFive Unleased add the following line to your local.conf. This tells the Unleashed to use a device tree with the PCIe device described:
|
||||
|
||||
```text
|
||||
RISCV_SBI_FDT_freedom-u540 = "hifive-unleashed-a00-microsemi.dtb"
|
||||
RISCV_SBI_FDT:freedom-u540 = "hifive-unleashed-a00-microsemi.dtb"
|
||||
```
|
||||
|
||||
### Sparse Image Creation
|
||||
|
||||
@@ -46,7 +46,7 @@ EXTRA_USERS_PARAMS = "useradd kde; \
|
||||
usermod -P kde kde;"
|
||||
|
||||
## Use the Microsemi Expansion board DT in OpenSBI (passed to the kernel)
|
||||
RISCV_SBI_FDT_freedom-u540 = "HiFiveUnleashed-MicroSemi-Expansion.dtb"
|
||||
RISCV_SBI_FDT:freedom-u540 = "HiFiveUnleashed-MicroSemi-Expansion.dtb"
|
||||
|
||||
## Install GPU driver for the GPU being used, in this example it's a Radeon R5 230
|
||||
PACKAGECONFIG:append:pn-mesa = " r600"
|
||||
|
||||
@@ -1,16 +1,16 @@
|
||||
FILESEXTRAPATHS:prepend := "${THISDIR}/files:"
|
||||
|
||||
SRC_URI:append_freedom-u540 = " \
|
||||
SRC_URI:append:freedom-u540 = " \
|
||||
file://tftp-mmc-boot.txt \
|
||||
"
|
||||
SRC_URI:append_freedom-u540_sota = " file://uEnv.txt"
|
||||
SRC_URI:append:freedom-u540_sota = " file://uEnv.txt"
|
||||
|
||||
DEPENDS:append_freedom-u540 = " u-boot-tools-native"
|
||||
DEPENDS:append:freedom-u540 = " u-boot-tools-native"
|
||||
|
||||
# Overwrite this for your server
|
||||
TFTP_SERVER_IP ?= "127.0.0.1"
|
||||
|
||||
do_configure:prepend_freedom-u540() {
|
||||
do_configure:prepend:freedom-u540() {
|
||||
sed -i -e 's,@SERVERIP@,${TFTP_SERVER_IP},g' ${WORKDIR}/tftp-mmc-boot.txt
|
||||
|
||||
if [ -f "${WORKDIR}/${UBOOT_ENV}.txt" ]; then
|
||||
@@ -19,7 +19,7 @@ do_configure:prepend_freedom-u540() {
|
||||
fi
|
||||
}
|
||||
|
||||
do_deploy:append_freedom-u540() {
|
||||
do_deploy:append:freedom-u540() {
|
||||
if [ -f "${WORKDIR}/boot.scr.uimg" ]; then
|
||||
install -d ${DEPLOY_DIR_IMAGE}
|
||||
install -m 755 ${WORKDIR}/boot.scr.uimg ${DEPLOY_DIR_IMAGE}
|
||||
@@ -31,4 +31,4 @@ do_deploy:append_freedom-u540() {
|
||||
fi
|
||||
}
|
||||
|
||||
FILES:${PN}:append_freedom-u540 = " /boot/boot.scr.uimg"
|
||||
FILES:${PN}:append:freedom-u540 = " /boot/boot.scr.uimg"
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
do_install:append_freedom-u540() {
|
||||
do_install:append:freedom-u540() {
|
||||
sed -i -e 's#/bin/start_getty#/sbin/getty#g' ${D}${sysconfdir}/inittab
|
||||
sed -i '/tty1/d' ${D}${sysconfdir}/inittab
|
||||
}
|
||||
|
||||
@@ -14,11 +14,11 @@ KCONFIG_MODE="--alldefconfig"
|
||||
|
||||
KBUILD_DEFCONFIG:qemuriscv32 = "rv32_defconfig"
|
||||
KBUILD_DEFCONFIG:qemuriscv64 = "defconfig"
|
||||
KBUILD_DEFCONFIG_freedom-u540 = "defconfig"
|
||||
KBUILD_DEFCONFIG:freedom-u540 = "defconfig"
|
||||
|
||||
COMPATIBLE_MACHINE = "(qemuriscv32|qemuriscv64|freedom-u540)"
|
||||
|
||||
KERNEL_DEVICETREE_freedom-u540 = "sifive/${RISCV_SBI_FDT}"
|
||||
KERNEL_DEVICETREE:freedom-u540 = "sifive/${RISCV_SBI_FDT}"
|
||||
|
||||
KERNEL_FEATURES:remove = "features/debug/printk.scc"
|
||||
KERNEL_FEATURES:remove = "features/kernel-sample/kernel-sample.scc"
|
||||
|
||||
@@ -9,7 +9,7 @@ SRC_URI = " \
|
||||
git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git;branch=${BRANCH} \
|
||||
"
|
||||
|
||||
SRC_URI:append_freedom-u540 = " \
|
||||
SRC_URI:append:freedom-u540 = " \
|
||||
file://extra.cfg \
|
||||
file://0001-PCI-microsemi-Add-host-driver-for-Microsemi-PCIe-con.patch \
|
||||
file://0002-Microsemi-PCIe-expansion-board-DT-entry.patch \
|
||||
|
||||
@@ -17,6 +17,6 @@ SRC_URI = "git://github.com/${FORK}/linux.git;protocol=git;branch=${BRANCH} \
|
||||
LINUX_VERSION ?= "5.14.0"
|
||||
LINUX_VERSION_EXTENSION:append = "-starlight"
|
||||
|
||||
KBUILD_DEFCONFIG_beaglev-starlight-jh7100 = "beaglev_defconfig"
|
||||
KBUILD_DEFCONFIG:beaglev-starlight-jh7100 = "beaglev_defconfig"
|
||||
|
||||
COMPATIBLE_MACHINE = "(beaglev-starlight-jh7100)"
|
||||
|
||||
@@ -19,6 +19,6 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=6bc538ed5bd9a7fc9398086aedcd7e46"
|
||||
PV = "${LINUX_VERSION}+git${SRCPV}"
|
||||
|
||||
KCONFIG_MODE = "--alldefconfig"
|
||||
KBUILD_DEFCONFIG_beaglev-starlight-jh7100 = "starlight_defconfig"
|
||||
KBUILD_DEFCONFIG:beaglev-starlight-jh7100 = "starlight_defconfig"
|
||||
|
||||
COMPATIBLE_MACHINE = "(beaglev-starlight-jh7100)"
|
||||
|
||||
Reference in New Issue
Block a user