Skip to contentSkip to conversation

zephyr-hci-uart: set COMPATIBLE_MACHINE to 96b-nitrogen machine

PATCH New Naveen Saini 1 participant 5 messages Feb 5, 2021

lore
Share & tools
lore
#0 lore raw

PATCH 1/5 zephyr-hci-uart: set COMPATIBLE_MACHINE to 96b-nitrogen machine

Fix recipe to build.
Support for Board arduino-101-ble already dropped from v1.12

Ref:
https://github.com/zephyrproject-rtos/zephyr/blob/v2.4-branch/samples/bluetooth/hci_uart/README.rst
https://github.com/zephyrproject-rtos/zephyr/blob/v2.4-branch/samples/bluetooth/hci_uart/boards/96b_nitrogen.conf

---
 recipes-kernel/zephyr-kernel/zephyr-hci-uart.bb | 11 ++++-------
 1 file changed, 4 insertions(+), 7 deletions(-)
recipes-kernel/zephyr-kernel/zephyr-hci-uart.bb +4 -7
index b70542a..ec6b13e 100644
@@ -2,19 +2,16 @@ require zephyr-kernel.inc
 require zephyr-kernel-common.inc
 inherit deploy
 
-COMPATIBLE_MACHINE = "(arduino-101-ble)"
+COMPATIBLE_MACHINE = "(96b-nitrogen)"
 
 ZEPHYR_SRC_DIR = "${S}/samples/bluetooth/hci_uart"
 ZEPHYR_BASE = "${S}"
 
-do_compile () {
-    cd ${ZEPHYR_SRC_DIR}
-    oe_runmake ${ZEPHYR_MAKE_ARGS}
-}
+OECMAKE_SOURCEPATH = "${ZEPHYR_SRC_DIR}"
 
 do_deploy () {
-    install -D samples/bluetooth/hci_uart/outdir/${BOARD}/zephyr.elf ${DEPLOYDIR}/${PN}.elf
-    install -D samples/bluetooth/hci_uart/outdir/${BOARD}/zephyr.bin ${DEPLOYDIR}/${PN}.bin
+    install -D ${B}/zephyr/${ZEPHYR_MAKE_OUTPUT} ${DEPLOYDIR}/${PN}.elf
 }
 
 addtask deploy after do_compile
+do_install[noexec] = "1"
Signature · 1 line
2.17.1
#1 lore raw

PATCH 2/5 zephyr-ipm: drop recipe

ipm moved to driver folder. Sample is no longer available.

Ref:
https://github.com/zephyrproject-rtos/zephyr/commit/131cfa2043b255246ae5c30c2c1383dff49a0442

---
 recipes-kernel/zephyr-kernel/zephyr-ipm.bb | 24 ----------------------
 1 file changed, 24 deletions(-)
 delete mode 100644 recipes-kernel/zephyr-kernel/zephyr-ipm.bb
recipes-kernel/zephyr-kernel/zephyr-ipm.bb deleted +0 -24
deleted file mode 100644
index 2f158c8..0000000
@@ -1,24 +0,0 @@
-require zephyr-kernel.inc
-require zephyr-kernel-common.inc
-inherit deploy
-
-SRC_DIR_IPM_arduino-101-sss = "samples/ipm/ipm_demo_arc"
-SRC_DIR_IPM_arduino-101     = "samples/ipm/ipm_demo_lmt"
-
-COMPATIBLE_MACHINE = "(arduino-101-sss|arduino-101)"
-
-ZEPHYR_SRC_DIR = "${S}/${SRC_DIR_IPM}/src"
-
-ZEPHYR_BASE = "${S}"
-
-do_compile () {
-    cd ${SRC_DIR_IPM}
-    oe_runmake ${ZEPHYR_MAKE_ARGS}
-}
-
-do_deploy () {
-    install -D ${SRC_DIR_IPM}/outdir/${BOARD}/zephyr.elf ${DEPLOYDIR}/${PN}.elf
-    install -D ${SRC_DIR_IPM}/outdir/${BOARD}/zephyr.bin ${DEPLOYDIR}/${PN}.bin
-}
-
-addtask deploy after do_compile
Signature · 1 line
2.17.1
#2 lore raw

PATCH 3/5 arduino-101: drop machine configuration

In reply to Naveen Saini

No longer supported.
https://github.com/zephyrproject-rtos/zephyr/commit/ffaba63b107780562c2c76ca066a7857bc497303

---
 conf/machine/arduino-101.conf | 14 --------------
 1 file changed, 14 deletions(-)
 delete mode 100644 conf/machine/arduino-101.conf
conf/machine/arduino-101.conf deleted +0 -14
deleted file mode 100644
index 0773903..0000000
@@ -1,14 +0,0 @@
-#@TYPE: Machine
-#@NAME: arduino-101
-
-#@DESCRIPTION: Machine configuration for Arduino 101 Board.
-
-TARGET_OS_arduino-101 = "elfiamcu"
-require conf/machine/include/tune-iamcu.inc
-TUNE_PKGARCH_arduino-101 = "iamcu"
-
-TARGET_LINK_HASH_STYLE = ""
-ZEPHYR_INHERIT_CLASSES += "zephyr-flash-dfu"
-
-ARCH_arduino-101 = "x86"
-
Signature · 1 line
2.17.1
#3 lore raw

PATCH 4/5 arduino-101-sss.conf: drop machine configuration

In reply to Naveen Saini

No longer supported.
https://github.com/zephyrproject-rtos/zephyr/commit/ffaba63b107780562c2c76ca066a7857bc497303

---
 conf/machine/arduino-101-sss.conf | 21 ---------------------
 1 file changed, 21 deletions(-)
 delete mode 100644 conf/machine/arduino-101-sss.conf
conf/machine/arduino-101-sss.conf deleted +0 -21
deleted file mode 100644
index a27f672..0000000
@@ -1,21 +0,0 @@
-#@TYPE: Machine
-#@NAME: arduino-101-sss
-
-#@DESCRIPTION: Machine configuration for Arduino 101 Board (ARC Core).
-
-TUNE_FEATURES ="arc quark-se no-sdata no-delete-null-pointer-checks"
-
-require conf/machine/include/tune-arc.inc
-PACKAGE_EXTRA_ARCHS_tune-arc = "arc"
-
-PREFERRED_VERSION_gcc-cross-${TARGET_ARCH} = "6.x.arc"
-PREFERRED_VERSION_gcc-cross-canadian-${TRANSLATED_TARGET_ARCH} = "6.x.arc"
-PREFERRED_VERSION_libgcc = "6.x.arc"
-
-PREFERRED_VERSION_binutils-cross-${TARGET_ARCH} = "2.26+gitarc"
-PREFERRED_VERSION_binutils-cross-canadian-${TRANSLATED_TARGET_ARCH} = "2.26+gitarc"
-
-TARGET_LINK_HASH_STYLE = ""
-ZEPHYR_INHERIT_CLASSES += "zephyr-flash-dfu"
-
-ARCH_arduino-101-sss = "arc"
Signature · 1 line
2.17.1
#4 lore raw

PATCH 5/5 arduino-101-ble.conf: drop machine configuration

In reply to Naveen Saini

No longer supported.
https://github.com/zephyrproject-rtos/zephyr/commit/66d60d29411fa34725b450a9e5fa000f1c69b747

---
 conf/machine/arduino-101-ble.conf | 12 ------------
 1 file changed, 12 deletions(-)
 delete mode 100644 conf/machine/arduino-101-ble.conf
conf/machine/arduino-101-ble.conf deleted +0 -12
deleted file mode 100644
index 55c3857..0000000
@@ -1,12 +0,0 @@
-#@TYPE: Machine
-#@NAME: arduino-101-ble
-
-#@DESCRIPTION: Machine configuration for Arduino 101 Board.
-
-DEFAULTTUNE = "cortexm0"
-require conf/machine/include/tune-cortexm0.inc
-
-TARGET_LINK_HASH_STYLE = ""
-ZEPHYR_INHERIT_CLASSES += "zephyr-flash-dfu"
-
-ARCH_arduino-101-ble = "arm"
Signature · 1 line
2.17.1