kumquat-buildroot/package/wf111/wf111.mk
Yann E. MORIN 65fe1c7c5e package/wf111: do a direct download
We can now do a download without prior registration, so we can drop the
requirement for a local, pre-downloaded tarball, now.

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Cc: Julien CORJON <corjon.j@ecagroup.com>
Cc: Antoine Ténart <antoine.tenart@free-electrons.com>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
2018-02-03 20:05:59 +01:00

29 lines
962 B
Makefile

################################################################################
#
# wf111
#
################################################################################
WF111_VERSION = 5-2-2-r3
WF111_SITE = https://www.silabs.com/documents/login/software
WF111_DEPENDENCIES = linux
ifeq ($(BR2_ARM_CPU_ARMV7A),y)
WF111_SOURCE = wf111-linux-driver-$(WF111_VERSION)-armv7-a.tar.gz
else ifeq ($(BR2_ARM_CPU_ARMV5),y)
WF111_SOURCE = wf111-linux-driver-$(WF111_VERSION)-armv5te.tar.gz
else ifeq ($(BR2_i386),y)
WF111_SOURCE = wf111-linux-driver-$(WF111_VERSION)-x86.tar.gz
endif
# Due to the stupidity of the package Makefile, we can't invoke
# separately the build step and the install step and get a correct
# behavior. So we do everything in the install step.
define WF111_INSTALL_TARGET_CMDS
$(TARGET_MAKE_ENV) $(MAKE) -C $(@D) PWD=$(@D) \
$(LINUX_MAKE_FLAGS) KDIR=$(LINUX_DIR) \
OUTPUT=$(TARGET_DIR) install_static
endef
$(eval $(generic-package))