diff options
author | Dirk Neukirchen <dirkneukirchen@web.de> | 2016-05-21 13:08:20 +0200 |
---|---|---|
committer | Felix Fietkau <nbd@nbd.name> | 2016-05-23 13:39:50 +0200 |
commit | 4c4497ec0de19eb93dc695cc2762c1a33ff16b9a (patch) | |
tree | 7f6d50c22b926241cc12cb009c00e788cbbbb12b | |
parent | 35782e104a851ff3d11d1874d6663aad1c71caa6 (diff) | |
download | mtk-20170518-4c4497ec0de19eb93dc695cc2762c1a33ff16b9a.zip mtk-20170518-4c4497ec0de19eb93dc695cc2762c1a33ff16b9a.tar.gz mtk-20170518-4c4497ec0de19eb93dc695cc2762c1a33ff16b9a.tar.bz2 |
package: spidev_test: update location for >Kernel 4.5
- document indirect source code fixup affecting spidev_test
v2: check against old Kernel versions
Signed-off-by: Dirk Neukirchen <dirkneukirchen@web.de>
-rw-r--r-- | package/utils/spidev_test/Makefile | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/package/utils/spidev_test/Makefile b/package/utils/spidev_test/Makefile index 807039a..631ef0d 100644 --- a/package/utils/spidev_test/Makefile +++ b/package/utils/spidev_test/Makefile @@ -30,9 +30,18 @@ endef define Build/Prepare 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 + endef define Package/spidev-test/install |