blob: c24891d7add277384b015b2265118fbd581fb851 [file] [log] [blame]
QUANTENNA_DRIVERS_SITE=repo://vendor/quantenna/drivers
QUANTENNA_DRIVERS_DEPENDENCIES=linux zlib
QUANTENNA_DRIVERS_MAKE_ENV = \
$(TARGET_MAKE_ENV) \
LINUX_DIR="$(LINUX_DIR)" \
TARGET_DIR="$(TARGET_DIR)" \
TARGET_CC="$(TARGET_CC)" \
TARGET_CFLAGS="$(TARGET_CFLAGS)" \
TARGET_STRIP="$(TARGET_STRIP)" \
ifeq ($(BR2_PACKAGE_QUANTENNA_DRIVERS_PCIE_HOST),y)
QUANTENNA_DRIVERS_TARGET = pcie_host
else ifeq ($(BR2_PACKAGE_QUANTENNA_DRIVERS_PCIE_MODULE),y)
QUANTENNA_DRIVERS_TARGET = pcie_module
else ifeq ($(BR2_PACKAGE_QUANTENNA_DRIVERS_STANDALONE),y)
QUANTENNA_DRIVERS_TARGET = standalone
endif
define QUANTENNA_DRIVERS_BUILD_CMDS
$(QUANTENNA_DRIVERS_MAKE_ENV) $(MAKE) -C $(@D) $(QUANTENNA_DRIVERS_TARGET)
endef
define QUANTENNA_DRIVERS_INSTALL_TARGET_CMDS
$(QUANTENNA_DRIVERS_MAKE_ENV) $(MAKE) -C $(@D) $(QUANTENNA_DRIVERS_TARGET)_install
endef
$(eval $(call GENTARGETS))