RubyFPV integration, part 2 (#1332)

pull/1334/head
Petru Soroaga 2024-03-01 15:57:16 +02:00 committed by GitHub
parent 56619980a5
commit 5f03f03431
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 17 additions and 0 deletions

View File

@ -112,3 +112,4 @@ source "$BR2_EXTERNAL_GENERAL_PATH/package/xiongmai-osdrv-xm530/Config.in"
source "$BR2_EXTERNAL_GENERAL_PATH/package/xmdp/Config.in"
source "$BR2_EXTERNAL_GENERAL_PATH/package/yaml-cli/Config.in"
source "$BR2_EXTERNAL_GENERAL_PATH/package/zerotier-one/Config.in"
source "$BR2_EXTERNAL_GENERAL_PATH/package/rubyfpv/Config.in"

View File

@ -5,6 +5,14 @@ endef
define RUBYFPV_BUILD_CMDS
(cd $(@D); $(TARGET_CC) -s ruby_start.c -o ruby_start)
(cd $(@D); $(TARGET_CC) -s ruby_start.c -o ruby_initradio)
(cd $(@D); $(TARGET_CC) -s ruby_start.c -o ruby_logger)
(cd $(@D); $(TARGET_CC) -s ruby_start.c -o ruby_timeinit)
(cd $(@D); $(TARGET_CC) -s ruby_start.c -o ruby_rt_vehicle)
(cd $(@D); $(TARGET_CC) -s ruby_start.c -o ruby_tx_telementry)
(cd $(@D); $(TARGET_CC) -s ruby_start.c -o ruby_rx_rc)
(cd $(@D); $(TARGET_CC) -s ruby_start.c -o ruby_rx_commands)
(cd $(@D); $(TARGET_CC) -s ruby_start.c -o ruby_vehicle)
endef
define RUBYFPV_INSTALL_TARGET_CMDS
@ -12,6 +20,14 @@ define RUBYFPV_INSTALL_TARGET_CMDS
cp $(RUBYFPV_PKGDIR)/files/S95ruby $(TARGET_DIR)/etc/init.d
install -m 0755 -D $(@D)/ruby_start $(TARGET_DIR)/usr/sbin/ruby_start
install -m 0755 -D $(@D)/ruby_initradio $(TARGET_DIR)/usr/sbin/ruby_initradio
install -m 0755 -D $(@D)/ruby_logger $(TARGET_DIR)/usr/sbin/ruby_logger
install -m 0755 -D $(@D)/ruby_timeinit $(TARGET_DIR)/usr/sbin/ruby_timeinit
install -m 0755 -D $(@D)/ruby_rt_vehicle $(TARGET_DIR)/usr/sbin/ruby_rt_vehicle
install -m 0755 -D $(@D)/ruby_tx_telemetry $(TARGET_DIR)/usr/sbin/ruby_tx_telemetry
install -m 0755 -D $(@D)/ruby_rx_rc $(TARGET_DIR)/usr/sbin/ruby_rx_rc
install -m 0755 -D $(@D)/ruby_rx_commands $(TARGET_DIR)/usr/sbin/ruby_rx_commands
install -m 0755 -D $(@D)/ruby_vehicle $(TARGET_DIR)/usr/sbin/ruby_vehicle
$(INSTALL) -m 755 -d $(TARGET_DIR)/usr/sbin
cp $(RUBYFPV_PKGDIR)/files/stop_vehicle.sh $(TARGET_DIR)/usr/sbin