spidev_test: copy the source code into the package folder

Signed-off-by: John Crispin <john@phrozen.org>
This commit is contained in:
John Crispin
2016-06-30 13:05:22 +02:00
parent 66b67b743f
commit 97c90557a9
2 changed files with 320 additions and 10 deletions

View File

@@ -28,20 +28,12 @@ define Package/spidev-test/description
endef
define Build/Prepare
$(CP) src/spidev_test.c $(PKG_BUILD_DIR)/
endef
# requires 214-spidev_h_portability.patch
# or linux/ioctl.h include on musl
define Build/Compile
ifneq ($(CONFIG_LINUX_3_18)$(CONFIG_LINUX_4_1)$(CONFIG_LINUX_4_4),y)
$(TARGET_CC) $(TARGET_CFLAGS) -o $(PKG_BUILD_DIR)/spidev_test \
$(LINUX_DIR)/tools/spi/spidev_test.c
else
$(TARGET_CC) $(TARGET_CFLAGS) -o $(PKG_BUILD_DIR)/spidev_test \
$(LINUX_DIR)/Documentation/spi/spidev_test.c
endif
$(PKG_BUILD_DIR)/spidev_test.c
endef
define Package/spidev-test/install