Skip to content

Commit

Permalink
remove all static CAN-bus interfaces
Browse files Browse the repository at this point in the history
This has been pending for 5 years, but finally, lets remove the
build time known CAN-busses since it is no longer needed, it is
queried / monitored at runtime instead now.
  • Loading branch information
jhofstee committed Jul 7, 2022
1 parent 4c169ae commit f3f18a3
Show file tree
Hide file tree
Showing 13 changed files with 0 additions and 51 deletions.
3 changes: 0 additions & 3 deletions meta-bsp/conf/machine/beaglebone.conf
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,6 @@ MACHINE_FEATURES += "headless"
VE_MKX_PORT = "/dev/ttyO5"
VE_VEDIRECT_PORTS = "/dev/ttyO2 /dev/ttyO4"
VE_PWM_BUZZER = "400"
# NOTE: keep can1 as the first, until the gui supports multiple profiles!
VE_CAN_PORTS = "can1 can0"
VE_CAN_NAMES = "VE.Can port\nCAN 2 port"

PREFERRED_PROVIDER_virtual/kernel = "linux-venus"
PREFERRED_PROVIDER_virtual/bootloader = "u-boot-bbb"
Expand Down
1 change: 0 additions & 1 deletion meta-bsp/conf/machine/canvu500.conf
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ require conf/machine/include/tune-cortexa9.inc
MACHINE_FEATURES = "screen serial usbhost"

# Inputs for machine-conf-runtime recipe
VE_CAN_PORTS = "can0 can1"
VE_BLANK_DISPLAY = "/sys/class/backlight/backlight/bl_power"
VE_BACKLIGHT = "/sys/class/backlight/backlight"
VE_PWM_BUZZER = "400"
Expand Down
2 changes: 0 additions & 2 deletions meta-bsp/conf/machine/ccgx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,6 @@ VE_VEDIRECT_AND_CONSOLE_PORT ?= "${@ '' if d.getVar('SERIAL_CONSOLES') else '/de
VE_BUZZER = "/sys/class/gpio/gpio35"
VE_BLANK_DISPLAY = "/sys/class/backlight/backlight/bl_power"
VE_BACKLIGHT = "/sys/class/backlight/backlight"
VE_CAN_PORTS = "can0"
VE_CAN_NAMES = "VE.Can port"
VE_LARGE_IMAGE_SUPPORT = "0"

PREFERRED_PROVIDER_virtual/kernel ?= "linux-ccgx"
Expand Down
2 changes: 0 additions & 2 deletions meta-bsp/conf/machine/einstein.conf
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@

include sunxi.conf

VE_CAN_PORTS = "can0 can1"
VE_CAN_NAMES = "VE.Can port\nBMS-Can port"
VE_PWM_BUZZER = "4000"

UBOOT_MACHINE = "einstein_victron_defconfig"
Expand Down
6 changes: 0 additions & 6 deletions meta-bsp/conf/machine/nanopi.conf
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,6 @@ include sunxi.conf

MACHINE_FEATURES += "headless"

# NOTE: while /etc/venus/canbus_ports is generated at runtime, all possible
# CAN-bus ports should still be known at build time, since CAN-bus services
# are created for them. There are down by default.
VE_CAN_PORTS = "can0"
VE_CAN_NAMES = "BMS-Can port"

UBOOT_MACHINE = "nanopi_victron_defconfig"

KERNEL_DEVICETREE = "\
Expand Down
3 changes: 0 additions & 3 deletions meta-bsp/recipes-bsp/machine-runtime-conf/files/canbus-config

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ PACKAGE_ARCH = "${MACHINE_ARCH}"
SRC_URI += " \
file://bad-unique-id \
file://board-compat \
file://canbus-config \
file://get-unique-id \
file://hw-revision \
file://installation-name \
Expand All @@ -22,10 +21,6 @@ SRC_URI:append:einstein = "\
file://backlight_device.in \
file://blank_display_device.in \
"
SRC_URI:append:sunxi = "\
file://can_names.in \
file://canbus_ports.in \
"

inherit update-rc.d

Expand All @@ -48,8 +43,6 @@ CONF_FILES = "\
VE_BACKLIGHT:backlight_device \
VE_BLANK_DISPLAY:blank_display_device \
VE_BUZZER:buzzer \
VE_CAN_PORTS:canbus_ports \
VE_CAN_NAMES:can_names \
VE_LARGE_IMAGE_SUPPORT:large_image_support \
VE_MKX_PORT:mkx_port \
VE_PWM_BUZZER:pwm_buzzer \
Expand Down Expand Up @@ -91,7 +84,6 @@ do_install:append() {
install -d ${D}/${bindir}
install -m 755 ${WORKDIR}/bad-unique-id ${D}/${bindir}
install -m 755 ${WORKDIR}/board-compat ${D}/${bindir}
install -m 755 ${WORKDIR}/canbus-config ${D}/${bindir}
install -m 755 ${WORKDIR}/hw-revision ${D}/${bindir}
install -m 755 ${WORKDIR}/installation-name ${D}/${bindir}
install -m 755 ${WORKDIR}/product-id ${D}/${bindir}
Expand Down

0 comments on commit f3f18a3

Please sign in to comment.