mirror of
https://github.com/outbackdingo/firmware.git
synced 2026-01-27 18:18:57 +00:00
Add motors package
This commit is contained in:
6
general/package/motors/Config.in
Normal file
6
general/package/motors/Config.in
Normal file
@@ -0,0 +1,6 @@
|
||||
config BR2_PACKAGE_MOTORS
|
||||
bool "motors"
|
||||
help
|
||||
Various code to manage motor hardware
|
||||
|
||||
https://openipc.org
|
||||
22
general/package/motors/motors.mk
Normal file
22
general/package/motors/motors.mk
Normal file
@@ -0,0 +1,22 @@
|
||||
################################################################################
|
||||
#
|
||||
# motors | updated 2021.10.02
|
||||
#
|
||||
################################################################################
|
||||
|
||||
MOTORS_VERSION = 686c50a31370dcbb1a71fc8b499f247868a52436
|
||||
MOTORS_SITE = $(call github,openipc,motors,$(MOTORS_VERSION))
|
||||
HISI_GPIO_LICENSE = MIT
|
||||
HISI_GPIO_LICENSE_FILES = LICENSE
|
||||
|
||||
define MOTORS_BUILD_CMDS
|
||||
(cd $(@D)/xm-kmotor; $(TARGET_CC) -Os -s main.c -o xm-kmotor)
|
||||
(cd $(@D)/xm-uart; $(TARGET_CC) -Os -s main.c -o xm-uart)
|
||||
endef
|
||||
|
||||
define MOTORS_INSTALL_TARGET_CMDS
|
||||
$(INSTALL) -m 0755 -D $(@D)/xm-kmotor/xm-kmotor $(TARGET_DIR)/usr/bin/xm-kmotor
|
||||
$(INSTALL) -m 0755 -D $(@D)/xm-uart/xm-uart $(TARGET_DIR)/usr/bin/xm-uart
|
||||
endef
|
||||
|
||||
$(eval $(generic-package))
|
||||
Reference in New Issue
Block a user