2015-02-03 15:33:25 +01:00
|
|
|
################################################################################
|
|
|
|
#
|
|
|
|
# wf111
|
|
|
|
#
|
|
|
|
################################################################################
|
|
|
|
|
2016-04-25 23:50:30 +02:00
|
|
|
WF111_VERSION = 5.2.2-r2
|
2015-02-03 15:33:25 +01:00
|
|
|
WF111_SITE_METHOD = file
|
|
|
|
WF111_SITE = $(call qstrip,$(BR2_PACKAGE_WF111_TARBALL_PATH))
|
|
|
|
WF111_DEPENDENCIES = linux
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_WF111)$(call qstrip,$(BR2_PACKAGE_WF111_TARBALL_PATH)),y)
|
|
|
|
$(error No tarball location specified, check BR2_PACKAGE_WF111_TARBALL_PATH)
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_ARM_CPU_ARMV7A),y)
|
2016-04-25 23:49:32 +02:00
|
|
|
WF111_SOURCE = wf111-linux-driver_$(WF111_VERSION)_armv7-a.tar.gz
|
2015-02-03 15:33:25 +01:00
|
|
|
else ifeq ($(BR2_ARM_CPU_ARMV5),y)
|
2016-04-25 23:49:32 +02:00
|
|
|
WF111_SOURCE = wf111-linux-driver_$(WF111_VERSION)_armv5t.tar.gz
|
2015-02-03 15:33:25 +01:00
|
|
|
else ifeq ($(BR2_i386),y)
|
2016-04-25 23:49:32 +02:00
|
|
|
WF111_SOURCE = wf111-linux-driver_$(WF111_VERSION)_x86.tar.gz
|
2015-02-03 15:33:25 +01:00
|
|
|
endif
|
|
|
|
|
2015-11-03 17:52:13 +01:00
|
|
|
# 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
|
2015-02-03 15:33:25 +01:00
|
|
|
$(MAKE) -C $(@D) PWD=$(@D) \
|
|
|
|
$(LINUX_MAKE_FLAGS) KDIR=$(LINUX_DIR) \
|
2015-11-03 17:52:13 +01:00
|
|
|
OUTPUT=$(TARGET_DIR) install_static
|
2015-02-03 15:33:25 +01:00
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(generic-package))
|