Current section

Files

Jump to
nerves_system_linkit package mt76 mt76.mk
Raw

package/mt76/mt76.mk

#############################################################
#
# mt76
#
#############################################################
MT76_VERSION = f06ed811cda67ab2ed9932c3e87ba03229e75f4e
MT76_SITE = $(call github,openwrt,mt76,$(MT76_VERSION))
MT76_LICENSE = ISC, GPLv2+
MT76_DEPENDENCIES = linux-backports
#CFLAGS="-I$(LINUX_BACKPORTS_DIR)/backport-include/uapi -I$(LINUX_BACKPORTS_DIR)/backport-include -include backport/autoconf.h -include backport/backport.h" \
define MT76_BUILD_CMDS
$(LINUX_MAKE_ENV) $(MAKE) -C $(LINUX_DIR) $(LINUX_MAKE_FLAGS) \
PWD=$(@D) M=$(LINUX_BACKPORTS_DIR) modules
endef
define MT76_INSTALL_TARGET_CMDS
# Copy rootfs-addition additions over
cp $(@)/firmware/mt7628_e1.bin $(TARGET_DIR)/lib/firmware
cp $(@)/firmware/mt7628_e2.bin $(TARGET_DIR)/lib/firmware
cp $(@)/firmware/mt7603_e1.bin $(TARGET_DIR)/lib/firmware
cp $(@)/firmware/mt7603_e2.bin $(TARGET_DIR)/lib/firmware
cp $(@)/firmware/mt7662_rom_patch.bin $(TARGET_DIR)/lib/firmware
cp $(@)/firmware/mt7662.bin $(TARGET_DIR)/lib/firmware
endef
#$(eval $(kernel-module))
$(eval $(generic-package))