diff options
| -rw-r--r-- | meta/conf/machine/include/riscv/qemuriscv.inc | 2 | ||||
| -rw-r--r-- | meta/recipes-bsp/opensbi/opensbi_0.8.bb (renamed from meta/recipes-bsp/opensbi/opensbi_0.6.bb) | 21 |
2 files changed, 11 insertions, 12 deletions
diff --git a/meta/conf/machine/include/riscv/qemuriscv.inc b/meta/conf/machine/include/riscv/qemuriscv.inc index a42346f361..759c8a196e 100644 --- a/meta/conf/machine/include/riscv/qemuriscv.inc +++ b/meta/conf/machine/include/riscv/qemuriscv.inc | |||
| @@ -18,7 +18,7 @@ WKS_FILE ?= "qemuriscv.wks" | |||
| 18 | MACHINE_EXTRA_RRECOMMENDS += " kernel-modules" | 18 | MACHINE_EXTRA_RRECOMMENDS += " kernel-modules" |
| 19 | 19 | ||
| 20 | EXTRA_IMAGEDEPENDS += "opensbi" | 20 | EXTRA_IMAGEDEPENDS += "opensbi" |
| 21 | RISCV_SBI_PLAT ?= "qemu/virt" | 21 | RISCV_SBI_PLAT ?= "generic" |
| 22 | RISCV_SBI_PAYLOAD ?= "${KERNEL_IMAGETYPE}-${MACHINE}.bin" | 22 | RISCV_SBI_PAYLOAD ?= "${KERNEL_IMAGETYPE}-${MACHINE}.bin" |
| 23 | 23 | ||
| 24 | UBOOT_ENTRYPOINT_riscv32 = "0x80400000" | 24 | UBOOT_ENTRYPOINT_riscv32 = "0x80400000" |
diff --git a/meta/recipes-bsp/opensbi/opensbi_0.6.bb b/meta/recipes-bsp/opensbi/opensbi_0.8.bb index 56f2d4b915..818efac733 100644 --- a/meta/recipes-bsp/opensbi/opensbi_0.6.bb +++ b/meta/recipes-bsp/opensbi/opensbi_0.8.bb | |||
| @@ -7,8 +7,8 @@ require opensbi-payloads.inc | |||
| 7 | 7 | ||
| 8 | inherit autotools-brokensep deploy | 8 | inherit autotools-brokensep deploy |
| 9 | 9 | ||
| 10 | SRCREV = "ac5e821d50be631f26274765a59bc1b444ffd862" | 10 | SRCREV = "a98258d0b537a295f517bbc8d813007336731fa9" |
| 11 | SRC_URI = "git://github.com/riscv/opensbi.git \ | 11 | SRC_URI = "git://github.com/riscv/opensbi.git;branch=master \ |
| 12 | file://0001-Makefile-Don-t-specify-mabi-or-march.patch \ | 12 | file://0001-Makefile-Don-t-specify-mabi-or-march.patch \ |
| 13 | " | 13 | " |
| 14 | 14 | ||
| @@ -25,22 +25,21 @@ do_install_append() { | |||
| 25 | # In the future these might be required as a dependency for other packages. | 25 | # In the future these might be required as a dependency for other packages. |
| 26 | # At the moment just delete them to avoid warnings | 26 | # At the moment just delete them to avoid warnings |
| 27 | rm -r ${D}/include | 27 | rm -r ${D}/include |
| 28 | rm -r ${D}/platform/${RISCV_SBI_PLAT}/lib | 28 | rm -r ${D}/lib* |
| 29 | rm -r ${D}/platform/${RISCV_SBI_PLAT}/firmware/payloads | 29 | rm -r ${D}/share/opensbi/*/${RISCV_SBI_PLAT}/firmware/payloads |
| 30 | rm -r ${D}/lib | ||
| 31 | } | 30 | } |
| 32 | 31 | ||
| 33 | do_deploy () { | 32 | do_deploy () { |
| 34 | install -m 755 ${D}/platform/${RISCV_SBI_PLAT}/firmware/fw_payload.* ${DEPLOYDIR}/ | 33 | install -m 755 ${D}/share/opensbi/*/${RISCV_SBI_PLAT}/firmware/fw_payload.* ${DEPLOYDIR}/ |
| 35 | install -m 755 ${D}/platform/${RISCV_SBI_PLAT}/firmware/fw_jump.* ${DEPLOYDIR}/ | 34 | install -m 755 ${D}/share/opensbi/*/${RISCV_SBI_PLAT}/firmware/fw_jump.* ${DEPLOYDIR}/ |
| 36 | install -m 755 ${D}/platform/${RISCV_SBI_PLAT}/firmware/fw_dynamic.* ${DEPLOYDIR}/ | 35 | install -m 755 ${D}/share/opensbi/*/${RISCV_SBI_PLAT}/firmware/fw_dynamic.* ${DEPLOYDIR}/ |
| 37 | } | 36 | } |
| 38 | 37 | ||
| 39 | addtask deploy before do_build after do_install | 38 | addtask deploy before do_build after do_install |
| 40 | 39 | ||
| 41 | FILES_${PN} += "/platform/${RISCV_SBI_PLAT}/firmware/fw_jump.*" | 40 | FILES_${PN} += "/share/opensbi/*/${RISCV_SBI_PLAT}/firmware/fw_jump.*" |
| 42 | FILES_${PN} += "/platform/${RISCV_SBI_PLAT}/firmware/fw_payload.*" | 41 | FILES_${PN} += "/share/opensbi/*/${RISCV_SBI_PLAT}/firmware/fw_payload.*" |
| 43 | FILES_${PN} += "/platform/${RISCV_SBI_PLAT}/firmware/fw_dynamic.*" | 42 | FILES_${PN} += "/share/opensbi/*/${RISCV_SBI_PLAT}/firmware/fw_dynamic.*" |
| 44 | 43 | ||
| 45 | COMPATIBLE_HOST = "(riscv64|riscv32).*" | 44 | COMPATIBLE_HOST = "(riscv64|riscv32).*" |
| 46 | INHIBIT_PACKAGE_STRIP = "1" | 45 | INHIBIT_PACKAGE_STRIP = "1" |
