mirror of https://github.com/OpenIPC/firmware.git
Add motors package
parent
287682a0a1
commit
4a8461ad70
|
@ -0,0 +1,6 @@
|
|||
config BR2_PACKAGE_MOTORS
|
||||
bool "motors"
|
||||
help
|
||||
Various code to manage motor hardware
|
||||
|
||||
https://openipc.org
|
|
@ -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))
|
Loading…
Reference in New Issue