mirror of
https://gitlab.com/buildroot.org/buildroot.git
synced 2026-09-19 16:40:46 -09:00
package/spidev_test: rename SPIDEV_ADD_LINUX_IOCTL
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com> Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
This commit is contained in:
committed by
Arnout Vandecappelle (Essensium/Mind)
parent
83eeee84e1
commit
45846d200e
@@ -24,12 +24,12 @@ SPIDEV_TEST_LICENSE = GPL-2.0
|
|||||||
|
|
||||||
# musl libc requires linux/ioctl.h for _IOC_SIZEBITS. Do a sed patch to keep
|
# musl libc requires linux/ioctl.h for _IOC_SIZEBITS. Do a sed patch to keep
|
||||||
# compatibility with different spidev_test.c versions that we support.
|
# compatibility with different spidev_test.c versions that we support.
|
||||||
define SPIDEV_ADD_LINUX_IOCTL
|
define SPIDEV_TEST_ADD_LINUX_IOCTL
|
||||||
$(SED) 's~^#include <sys/ioctl.h>~#include <sys/ioctl.h>\n#include <linux/ioctl.h>~' \
|
$(SED) 's~^#include <sys/ioctl.h>~#include <sys/ioctl.h>\n#include <linux/ioctl.h>~' \
|
||||||
$(@D)/spidev_test.c
|
$(@D)/spidev_test.c
|
||||||
endef
|
endef
|
||||||
|
|
||||||
SPIDEV_TEST_POST_PATCH_HOOKS += SPIDEV_ADD_LINUX_IOCTL
|
SPIDEV_TEST_POST_PATCH_HOOKS += SPIDEV_TEST_ADD_LINUX_IOCTL
|
||||||
|
|
||||||
define SPIDEV_TEST_EXTRACT_CMDS
|
define SPIDEV_TEST_EXTRACT_CMDS
|
||||||
cp $(SPIDEV_TEST_DL_DIR)/$(SPIDEV_TEST_SOURCE) $(@D)/spidev_test.c
|
cp $(SPIDEV_TEST_DL_DIR)/$(SPIDEV_TEST_SOURCE) $(@D)/spidev_test.c
|
||||||
|
|||||||
Reference in New Issue
Block a user