diff --git a/include/download.mk b/include/download.mk index 76bd374cf7..68dc39bcd2 100644 --- a/include/download.mk +++ b/include/download.mk @@ -27,7 +27,7 @@ define dl_method $(strip \ $(if $(filter git,$(2)),$(call dl_method_git,$(1),$(2)), $(if $(2),$(2), \ - $(if $(filter @OPENWRT @APACHE/% @DEBIAN/% @GITHUB/% @GNOME/% @GNU/% @KERNEL/% @SF/% @SAVANNAH/% ftp://% http://% https://% file://%,$(1)),default, \ + $(if $(filter @OPENWRT @IMMORTALWRT @APACHE/% @DEBIAN/% @GITHUB/% @GNOME/% @GNU/% @KERNEL/% @SF/% @SAVANNAH/% ftp://% http://% https://% file://%,$(1)),default, \ $(if $(filter git://%,$(1)),$(call dl_method_git,$(1),$(2)), \ $(if $(filter svn://%,$(1)),svn, \ $(if $(filter cvs://%,$(1)),cvs, \ diff --git a/package/kernel/r8101/Makefile b/package/kernel/r8101/Makefile new file mode 100644 index 0000000000..fcf4929af9 --- /dev/null +++ b/package/kernel/r8101/Makefile @@ -0,0 +1,39 @@ +# SPDX-License-Identifier: GPL-3.0-only +# +# Copyright (C) 2022 ImmortalWrt.org + +include $(TOPDIR)/rules.mk +include $(INCLUDE_DIR)/kernel.mk + +PKG_NAME:=r8101 +PKG_VERSION:=1.037.01 +PKG_RELEASE:=$(AUTORELEASE) + +PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2 +PKG_SOURCE_URL:=@IMMORTALWRT +PKG_HASH:=62bb19848a87d2fe4de3fa9332225dcb5381f06cb93ec8931ea3fd894d492aea +PKG_BUILD_DIR:=$(KERNEL_BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION) + +PKG_MAINTAINER:=Tianling Shen +PKG_LICENSE:=GPL-2.0-only + +include $(INCLUDE_DIR)/package.mk + +define KernelPackage/r8101 + TITLE:=Driver for Realtek r8101 chipsets + SUBMENU:=Network Devices + VERSION:=$(LINUX_VERSION)+$(PKG_VERSION)-$(BOARD)-$(PKG_RELEASE) + DEPENDS:=@PCI_SUPPORT + FILES:= $(PKG_BUILD_DIR)/src/r8101.ko + AUTOLOAD:=$(call AutoProbe,r8101) +endef + +define Package/r8101/description + This package contains a driver for Realtek r8101 chipsets. +endef + +define Build/Compile + +$(KERNEL_MAKE) M=$(PKG_BUILD_DIR)/src modules +endef + +$(eval $(call KernelPackage,r8101)) diff --git a/scripts/download.pl b/scripts/download.pl index d5c1e96763..22b0a25ac1 100755 --- a/scripts/download.pl +++ b/scripts/download.pl @@ -198,6 +198,8 @@ foreach my $mirror (@ARGV) { } } elsif ($mirror =~ /^\@OPENWRT$/) { # use OpenWrt source server directly + } elsif ($mirror =~ /^\@IMMORTALWRT$/) { + # use ImmortalWrt source server directly } elsif ($mirror =~ /^\@DEBIAN\/(.+)$/) { push @mirrors, "https://mirrors.tencent.com/debian/$1"; push @mirrors, "https://mirrors.aliyun.com/debian/$1"; @@ -288,7 +290,6 @@ foreach my $mirror (@ARGV) { } # push @mirrors, 'https://mirror01.download.immortalwrt.eu.org'; -push @mirrors, 'https://mirror2.immortalwrt.org/sources'; push @mirrors, 'https://mirror.immortalwrt.org/sources'; push @mirrors, 'https://sources.immortalwrt.org'; push @mirrors, 'https://sources.cdn.immortalwrt.org'; diff --git a/target/linux/x86/Makefile b/target/linux/x86/Makefile index aedac94317..cca8add7e1 100644 --- a/target/linux/x86/Makefile +++ b/target/linux/x86/Makefile @@ -19,8 +19,8 @@ KERNELNAME:=bzImage include $(INCLUDE_DIR)/target.mk DEFAULT_PACKAGES += partx-utils mkf2fs fdisk e2fsprogs kmod-usb-hid kmod-e1000e kmod-igb kmod-igbvf \ - kmod-ixgbe kmod-pcnet32 kmod-tulip kmod-vmxnet3 kmod-i40e kmod-iavf kmod-r8125 \ - kmod-r8168 kmod-8139cp kmod-8139too kmod-fs-f2fs autocore-x86 automount \ + kmod-ixgbe kmod-pcnet32 kmod-tulip kmod-vmxnet3 kmod-i40e kmod-iavf kmod-r8101\ + kmod-r8125 kmod-r8168 kmod-8139cp kmod-8139too kmod-fs-f2fs autocore-x86 automount \ kmod-sound-hda-core kmod-sound-hda-codec-realtek kmod-sound-hda-codec-via \ kmod-sound-via82xx kmod-sound-hda-intel kmod-sound-hda-codec-hdmi kmod-sound-i8x0 \ kmod-usb-audio kmod-usb-net kmod-usb-net-asix kmod-usb-net-asix-ax88179 \