Compare commits
1 Commits
main
...
fpga-image
| Author | SHA1 | Date |
|---|---|---|
|
|
55985f97dd |
|
|
@ -14,3 +14,7 @@ KERNEL_DEVICETREE = "openwrt-nbhw17.dtb"
|
||||||
|
|
||||||
EXT_SERIAL_CONSOLE ?= "115200;ttyS1"
|
EXT_SERIAL_CONSOLE ?= "115200;ttyS1"
|
||||||
SERIAL_CONSOLES = "${EXT_SERIAL_CONSOLE}"
|
SERIAL_CONSOLES = "${EXT_SERIAL_CONSOLE}"
|
||||||
|
|
||||||
|
MACHINE_FEATURES += " \
|
||||||
|
fpga \
|
||||||
|
"
|
||||||
|
|
@ -18,3 +18,7 @@ KERNEL_DEVICETREE = " \
|
||||||
DEBUG_SERIAL_CONSOLE ?= "115200;ttyS0"
|
DEBUG_SERIAL_CONSOLE ?= "115200;ttyS0"
|
||||||
EXT_SERIAL_CONSOLE ?= "115200;ttyS1"
|
EXT_SERIAL_CONSOLE ?= "115200;ttyS1"
|
||||||
SERIAL_CONSOLES = "${EXT_SERIAL_CONSOLE} ${DEBUG_SERIAL_CONSOLE}"
|
SERIAL_CONSOLES = "${EXT_SERIAL_CONSOLE} ${DEBUG_SERIAL_CONSOLE}"
|
||||||
|
|
||||||
|
MACHINE_FEATURES += " \
|
||||||
|
fpga \
|
||||||
|
"
|
||||||
|
|
@ -0,0 +1,26 @@
|
||||||
|
DESCRIPTION = "Fpga images"
|
||||||
|
LICENSE = "Proprietary"
|
||||||
|
LIC_FILES_CHKSUM = "file://${COREBASE}/meta/files/common-licenses/Proprietary;md5=0557f9d92cf58f2ccdd50f62f8ac0b28"
|
||||||
|
|
||||||
|
inherit deploy
|
||||||
|
|
||||||
|
COMPATIBLE_MACHINE = "(netmodule-hw17|netmodule-hw18)"
|
||||||
|
SRC_URI = "file://LG00000000"
|
||||||
|
|
||||||
|
PACKAGE_ARCH = "${MACHINE_ARCH}"
|
||||||
|
|
||||||
|
PV = "1.0.0"
|
||||||
|
|
||||||
|
|
||||||
|
do_install () {
|
||||||
|
install -d ${D}/logic
|
||||||
|
install -m 0644 ${WORKDIR}/LG00000000 ${D}/logic/
|
||||||
|
}
|
||||||
|
|
||||||
|
do_deploy () {
|
||||||
|
cp ${WORKDIR}/LG00000000 ${DEPLOYDIR}/fpga-image-${MACHINE}
|
||||||
|
}
|
||||||
|
|
||||||
|
FILES:${PN} += "/logic/LG00000000"
|
||||||
|
|
||||||
|
addtask deploy before do_build after do_compile
|
||||||
Binary file not shown.
Binary file not shown.
|
|
@ -0,0 +1,23 @@
|
||||||
|
do_assemble_fitimage[depends] += "fpga-image:do_deploy"
|
||||||
|
|
||||||
|
#
|
||||||
|
# Emit the fitImage ITS fpga section
|
||||||
|
#
|
||||||
|
# $1 ... .its filename
|
||||||
|
# $2 ... Image counter
|
||||||
|
# $3 ... Path to fpga image
|
||||||
|
fitimage_emit_section_kernel:append() {
|
||||||
|
fpgacount=1
|
||||||
|
cat << EOF >> ${1}
|
||||||
|
fpga-${fpgacount} {
|
||||||
|
description = "FPGA";
|
||||||
|
data = /incbin/("${DEPLOY_DIR_IMAGE}/fpga-image-${MACHINE}");
|
||||||
|
type = "fpga";
|
||||||
|
arch = "${UBOOT_ARCH}";
|
||||||
|
compression = "none";
|
||||||
|
hash-1 {
|
||||||
|
algo = "sha1";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
EOF
|
||||||
|
}
|
||||||
|
|
@ -19,6 +19,8 @@ kernel_do_deploy () {
|
||||||
|
|
||||||
inherit kernel-fitimage
|
inherit kernel-fitimage
|
||||||
inherit kernel-arch
|
inherit kernel-arch
|
||||||
|
inherit ${@bb.utils.contains('MACHINE_FEATURES', 'fpga', 'kernel-fitimage-fpga', '', d)}
|
||||||
|
|
||||||
|
|
||||||
do_assemble_fitimage:prepend() {
|
do_assemble_fitimage:prepend() {
|
||||||
install -d ${S}/arch/${ARCH}/boot/
|
install -d ${S}/arch/${ARCH}/boot/
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue