diff --git a/linux-5.4.57-340.bee b/linux-5.4.57-340.bee new file mode 100755 index 000000000..3c68743ac --- /dev/null +++ b/linux-5.4.57-340.bee @@ -0,0 +1,912 @@ +#!/bin/env beesh + +# note: BEE_MAKEFLAGS="-j $(nproc)" ./linux-xxx.bee + +KERNELVERSION=${PKGVERSION} +if [ -z "${PKGVERSION[3]}" ] ; then + KERNELVERSION=${KERNELVERSION}.0 +fi + +# append extra version to get for example 4.8.0-rc4 +KERNELVERSION=${KERNELVERSION}${PKGEXTRAVERSION_DASH} + +echo $KERNELVERSION + +SRCURL[0]="https://cdn.kernel.org/pub/linux/kernel/v${PKGVERSION[1]}.x/linux-${PKGVERSION}${PKGEXTRAVERSION_DASH}.tar.xz" +if [ -z "${PKGEXTRAVERSION_DASH}" ]; then + SRCURL[0]="https://cdn.kernel.org/pub/linux/kernel/v${PKGVERSION[1]}.x/linux-${PKGVERSION}.tar.xz" +else + SRCURL[0]="https://git.kernel.org/torvalds/t/linux-${PKGVERSION}${PKGEXTRAVERSION_DASH}.tar.gz" +fi + +# EXCLUDE="" + +PATCHURL+=(/src/mariux/patches/linux-5.4.57-nfsd-Add-trace-events-for-all-v4-operations.patch) +PATCHURL+=(/src/mariux/patches/0001-iommu-amd-Print-extended-features-in-one-line-to-fix.patch) +PATCHURL+=(/src/mariux/patches/0001-kernel-params.c-Align-last-argument-with-a-tab.patch) +PATCHURL+=(/src/mariux/patches/0002-moduleparams-Add-hexint-type-parameter.patch) +PATCHURL+=(/src/mariux/patches/linux-5.4.57-drm-amdgpu-Change-type-of-module-param-ppfeaturemask.patch) +PATCHURL+=(/src/mariux/patches/0001-kernel-rcu-Print-out-more-information-when-NMI-stall.patch) + +#CONFIG= + +KERNELLOCAL=".mx64.${PKGREVISION}" +FULLKERNELVERSION="${KERNELVERSION}${KERNELLOCAL}" + +B=${S} + +same_revision_files=$(ls ${BEE_PKGDIR}/linux-[0-9].[0-9]*-${PKGREVISION}.x86_64.bee.* 2>/dev/null) \ + && echo "A kernel with revision ${PKGREVISION} has already been build: $same_revision_files" \ + && exit + +mee_patch() { + echo "PATCH $@" + bee_patch $@ +} + +mee_configure() { + echo "configure $@" + # result from 'make savedefconfig' + cat >config-from-bee-file <<-EOF + CONFIG_LOCALVERSION="$KERNELLOCAL" + CONFIG_KERNEL_LZ4=y + CONFIG_SYSVIPC=y + CONFIG_POSIX_MQUEUE=y + CONFIG_AUDIT=y + CONFIG_NO_HZ_IDLE=y + CONFIG_HIGH_RES_TIMERS=y + CONFIG_PREEMPT_VOLUNTARY=y + CONFIG_BSD_PROCESS_ACCT=y + CONFIG_BSD_PROCESS_ACCT_V3=y + CONFIG_TASK_XACCT=y + CONFIG_TASK_IO_ACCOUNTING=y + CONFIG_PSI=y + CONFIG_IKCONFIG=y + CONFIG_IKCONFIG_PROC=y + CONFIG_IKHEADERS=m + CONFIG_LOG_BUF_SHIFT=19 + CONFIG_CGROUPS=y + CONFIG_MEMCG=y + CONFIG_MEMCG_SWAP=y + CONFIG_BLK_CGROUP=y + CONFIG_CGROUP_SCHED=y + CONFIG_CFS_BANDWIDTH=y + CONFIG_RT_GROUP_SCHED=y + CONFIG_CGROUP_PIDS=y + CONFIG_CGROUP_FREEZER=y + CONFIG_CGROUP_HUGETLB=y + CONFIG_CPUSETS=y + CONFIG_CGROUP_DEVICE=y + CONFIG_CGROUP_CPUACCT=y + CONFIG_CGROUP_PERF=y + CONFIG_CGROUP_BPF=y + CONFIG_CGROUP_DEBUG=y + CONFIG_USER_NS=y + CONFIG_BLK_DEV_INITRD=y + CONFIG_BPF_SYSCALL=y + CONFIG_SLAB=y + CONFIG_SMP=y + CONFIG_X86_X2APIC=y + CONFIG_GART_IOMMU=y + CONFIG_NR_CPUS=256 + CONFIG_X86_MCELOG_LEGACY=y + CONFIG_MICROCODE_AMD=y + CONFIG_X86_MSR=m + CONFIG_X86_CPUID=m + CONFIG_NUMA=y + CONFIG_EFI=y + CONFIG_HZ_1000=y + CONFIG_KEXEC=y + CONFIG_KEXEC_FILE=y + CONFIG_CRASH_DUMP=y + # CONFIG_RANDOMIZE_BASE is not set + CONFIG_PHYSICAL_ALIGN=0x1000000 + CONFIG_COMPAT_VDSO=y + # CONFIG_ACPI_AC is not set + # CONFIG_ACPI_BATTERY is not set + CONFIG_ACPI_DOCK=y + CONFIG_CPU_FREQ_GOV_POWERSAVE=m + CONFIG_X86_ACPI_CPUFREQ=m + # CONFIG_X86_ACPI_CPUFREQ_CPB is not set + CONFIG_IA32_EMULATION=y + CONFIG_GOOGLE_FIRMWARE=y + CONFIG_GOOGLE_COREBOOT_TABLE=m + CONFIG_GOOGLE_MEMCONSOLE_COREBOOT=m + CONFIG_EFI_VARS=y + CONFIG_KVM=m + CONFIG_KVM_INTEL=m + CONFIG_KVM_AMD=m + CONFIG_KPROBES=y + CONFIG_MODULES=y + CONFIG_MODULE_UNLOAD=y + CONFIG_MODULE_FORCE_UNLOAD=y + CONFIG_MODVERSIONS=y + CONFIG_BLK_DEV_INTEGRITY=y + CONFIG_BLK_DEV_THROTTLING=y + CONFIG_PARTITION_ADVANCED=y + CONFIG_MAC_PARTITION=y + CONFIG_BSD_DISKLABEL=y + CONFIG_LDM_PARTITION=y + # CONFIG_CORE_DUMP_DEFAULT_ELF_HEADERS is not set + CONFIG_BINFMT_MISC=y + CONFIG_TRANSPARENT_HUGEPAGE=y + CONFIG_NET=y + CONFIG_PACKET=m + CONFIG_PACKET_DIAG=m + CONFIG_UNIX=m + CONFIG_UNIX_DIAG=m + CONFIG_XFRM_USER=m + CONFIG_INET=y + CONFIG_IP_MULTICAST=y + CONFIG_IP_ADVANCED_ROUTER=y + CONFIG_IP_FIB_TRIE_STATS=y + CONFIG_IP_MULTIPLE_TABLES=y + CONFIG_IP_ROUTE_MULTIPATH=y + CONFIG_IP_ROUTE_VERBOSE=y + CONFIG_NET_IPIP=m + CONFIG_NET_IPGRE_DEMUX=m + CONFIG_NET_IPGRE=m + CONFIG_NET_IPGRE_BROADCAST=y + CONFIG_IP_MROUTE=y + CONFIG_IP_MROUTE_MULTIPLE_TABLES=y + CONFIG_IP_PIMSM_V1=y + CONFIG_IP_PIMSM_V2=y + CONFIG_NET_IPVTI=m + CONFIG_NET_FOU_IP_TUNNELS=y + CONFIG_INET_AH=m + CONFIG_INET_ESP=m + CONFIG_INET_IPCOMP=m + CONFIG_INET_DIAG=m + CONFIG_INET_UDP_DIAG=m + CONFIG_INET_RAW_DIAG=m + CONFIG_INET_DIAG_DESTROY=y + CONFIG_TCP_CONG_ADVANCED=y + CONFIG_TCP_CONG_HSTCP=m + CONFIG_TCP_CONG_HYBLA=m + CONFIG_TCP_CONG_SCALABLE=m + CONFIG_TCP_CONG_LP=m + CONFIG_TCP_CONG_VENO=m + CONFIG_TCP_CONG_YEAH=m + CONFIG_TCP_CONG_ILLINOIS=m + CONFIG_TCP_CONG_DCTCP=m + CONFIG_TCP_CONG_CDG=m + CONFIG_TCP_MD5SIG=y + CONFIG_IPV6=m + CONFIG_IPV6_ROUTER_PREF=y + CONFIG_IPV6_ROUTE_INFO=y + CONFIG_IPV6_OPTIMISTIC_DAD=y + CONFIG_INET6_AH=m + CONFIG_INET6_ESP=m + CONFIG_INET6_IPCOMP=m + CONFIG_IPV6_MIP6=m + CONFIG_IPV6_ILA=m + CONFIG_IPV6_VTI=m + CONFIG_IPV6_SIT_6RD=y + CONFIG_IPV6_GRE=m + CONFIG_IPV6_MULTIPLE_TABLES=y + CONFIG_IPV6_SUBTREES=y + CONFIG_IPV6_MROUTE=y + CONFIG_IPV6_MROUTE_MULTIPLE_TABLES=y + CONFIG_IPV6_PIMSM_V2=y + CONFIG_NETFILTER=y + CONFIG_NF_CONNTRACK=m + CONFIG_NF_LOG_NETDEV=m + CONFIG_NF_CONNTRACK_ZONES=y + CONFIG_NF_CONNTRACK_EVENTS=y + CONFIG_NF_CONNTRACK_TIMEOUT=y + CONFIG_NF_CONNTRACK_TIMESTAMP=y + CONFIG_NF_CONNTRACK_AMANDA=m + CONFIG_NF_CONNTRACK_FTP=m + CONFIG_NF_CONNTRACK_H323=m + CONFIG_NF_CONNTRACK_IRC=m + CONFIG_NF_CONNTRACK_NETBIOS_NS=m + CONFIG_NF_CONNTRACK_SNMP=m + CONFIG_NF_CONNTRACK_PPTP=m + CONFIG_NF_CONNTRACK_SANE=m + CONFIG_NF_CONNTRACK_SIP=m + CONFIG_NF_CONNTRACK_TFTP=m + CONFIG_NF_CT_NETLINK=m + CONFIG_NF_CT_NETLINK_TIMEOUT=m + CONFIG_NF_CT_NETLINK_HELPER=m + CONFIG_NETFILTER_NETLINK_GLUE_CT=y + CONFIG_NF_TABLES=m + CONFIG_NF_TABLES_SET=m + CONFIG_NF_TABLES_INET=y + CONFIG_NF_TABLES_NETDEV=y + CONFIG_NFT_NUMGEN=m + CONFIG_NFT_CT=m + CONFIG_NFT_FLOW_OFFLOAD=m + CONFIG_NFT_COUNTER=m + CONFIG_NFT_CONNLIMIT=m + CONFIG_NFT_LOG=m + CONFIG_NFT_LIMIT=m + CONFIG_NFT_MASQ=m + CONFIG_NFT_REDIR=m + CONFIG_NFT_NAT=m + CONFIG_NFT_TUNNEL=m + CONFIG_NFT_OBJREF=m + CONFIG_NFT_QUEUE=m + CONFIG_NFT_QUOTA=m + CONFIG_NFT_REJECT=m + CONFIG_NFT_COMPAT=m + CONFIG_NFT_HASH=m + CONFIG_NFT_FIB_INET=m + CONFIG_NFT_SOCKET=m + CONFIG_NFT_OSF=m + CONFIG_NFT_TPROXY=m + CONFIG_NFT_DUP_NETDEV=m + CONFIG_NFT_FWD_NETDEV=m + CONFIG_NFT_FIB_NETDEV=m + CONFIG_NF_FLOW_TABLE_INET=m + CONFIG_NF_FLOW_TABLE=m + CONFIG_NETFILTER_XT_SET=m + CONFIG_NETFILTER_XT_TARGET_AUDIT=m + CONFIG_NETFILTER_XT_TARGET_CHECKSUM=m + CONFIG_NETFILTER_XT_TARGET_CLASSIFY=m + CONFIG_NETFILTER_XT_TARGET_CONNMARK=m + CONFIG_NETFILTER_XT_TARGET_DSCP=m + CONFIG_NETFILTER_XT_TARGET_HMARK=m + CONFIG_NETFILTER_XT_TARGET_IDLETIMER=m + CONFIG_NETFILTER_XT_TARGET_LOG=m + CONFIG_NETFILTER_XT_TARGET_MARK=m + CONFIG_NETFILTER_XT_TARGET_NFLOG=m + CONFIG_NETFILTER_XT_TARGET_NFQUEUE=m + CONFIG_NETFILTER_XT_TARGET_NOTRACK=m + CONFIG_NETFILTER_XT_TARGET_TEE=m + CONFIG_NETFILTER_XT_TARGET_TPROXY=m + CONFIG_NETFILTER_XT_TARGET_TRACE=m + CONFIG_NETFILTER_XT_TARGET_TCPMSS=m + CONFIG_NETFILTER_XT_TARGET_TCPOPTSTRIP=m + CONFIG_NETFILTER_XT_MATCH_ADDRTYPE=m + CONFIG_NETFILTER_XT_MATCH_BPF=m + CONFIG_NETFILTER_XT_MATCH_CGROUP=m + CONFIG_NETFILTER_XT_MATCH_CLUSTER=m + CONFIG_NETFILTER_XT_MATCH_COMMENT=m + CONFIG_NETFILTER_XT_MATCH_CONNBYTES=m + CONFIG_NETFILTER_XT_MATCH_CONNLABEL=m + CONFIG_NETFILTER_XT_MATCH_CONNLIMIT=m + CONFIG_NETFILTER_XT_MATCH_CONNMARK=m + CONFIG_NETFILTER_XT_MATCH_CONNTRACK=m + CONFIG_NETFILTER_XT_MATCH_CPU=m + CONFIG_NETFILTER_XT_MATCH_DEVGROUP=m + CONFIG_NETFILTER_XT_MATCH_DSCP=m + CONFIG_NETFILTER_XT_MATCH_ESP=m + CONFIG_NETFILTER_XT_MATCH_HASHLIMIT=m + CONFIG_NETFILTER_XT_MATCH_HELPER=m + CONFIG_NETFILTER_XT_MATCH_IPCOMP=m + CONFIG_NETFILTER_XT_MATCH_IPRANGE=m + CONFIG_NETFILTER_XT_MATCH_IPVS=m + CONFIG_NETFILTER_XT_MATCH_LENGTH=m + CONFIG_NETFILTER_XT_MATCH_LIMIT=m + CONFIG_NETFILTER_XT_MATCH_MAC=m + CONFIG_NETFILTER_XT_MATCH_MARK=m + CONFIG_NETFILTER_XT_MATCH_MULTIPORT=m + CONFIG_NETFILTER_XT_MATCH_NFACCT=m + CONFIG_NETFILTER_XT_MATCH_OSF=m + CONFIG_NETFILTER_XT_MATCH_OWNER=m + CONFIG_NETFILTER_XT_MATCH_POLICY=m + CONFIG_NETFILTER_XT_MATCH_PHYSDEV=m + CONFIG_NETFILTER_XT_MATCH_PKTTYPE=m + CONFIG_NETFILTER_XT_MATCH_QUOTA=m + CONFIG_NETFILTER_XT_MATCH_RATEEST=m + CONFIG_NETFILTER_XT_MATCH_REALM=m + CONFIG_NETFILTER_XT_MATCH_RECENT=m + CONFIG_NETFILTER_XT_MATCH_SOCKET=m + CONFIG_NETFILTER_XT_MATCH_STATE=m + CONFIG_NETFILTER_XT_MATCH_STATISTIC=m + CONFIG_NETFILTER_XT_MATCH_STRING=m + CONFIG_NETFILTER_XT_MATCH_TCPMSS=m + CONFIG_NETFILTER_XT_MATCH_TIME=m + CONFIG_NETFILTER_XT_MATCH_U32=m + CONFIG_IP_SET=m + CONFIG_IP_SET_BITMAP_IP=m + CONFIG_IP_SET_BITMAP_IPMAC=m + CONFIG_IP_SET_BITMAP_PORT=m + CONFIG_IP_SET_HASH_IP=m + CONFIG_IP_SET_HASH_IPMARK=m + CONFIG_IP_SET_HASH_IPPORT=m + CONFIG_IP_SET_HASH_IPPORTIP=m + CONFIG_IP_SET_HASH_IPPORTNET=m + CONFIG_IP_SET_HASH_MAC=m + CONFIG_IP_SET_HASH_NETPORTNET=m + CONFIG_IP_SET_HASH_NET=m + CONFIG_IP_SET_HASH_NETNET=m + CONFIG_IP_SET_HASH_NETPORT=m + CONFIG_IP_SET_HASH_NETIFACE=m + CONFIG_IP_SET_LIST_SET=m + CONFIG_IP_VS=m + CONFIG_IP_VS_RR=m + CONFIG_IP_VS_NFCT=y + CONFIG_NFT_DUP_IPV4=m + CONFIG_NFT_FIB_IPV4=m + CONFIG_NF_TABLES_ARP=y + CONFIG_NF_LOG_ARP=m + CONFIG_IP_NF_IPTABLES=m + CONFIG_IP_NF_MATCH_AH=m + CONFIG_IP_NF_MATCH_ECN=m + CONFIG_IP_NF_MATCH_RPFILTER=m + CONFIG_IP_NF_MATCH_TTL=m + CONFIG_IP_NF_FILTER=m + CONFIG_IP_NF_TARGET_REJECT=m + CONFIG_IP_NF_TARGET_SYNPROXY=m + CONFIG_IP_NF_NAT=m + CONFIG_IP_NF_TARGET_MASQUERADE=m + CONFIG_IP_NF_TARGET_NETMAP=m + CONFIG_IP_NF_TARGET_REDIRECT=m + CONFIG_IP_NF_MANGLE=m + CONFIG_IP_NF_TARGET_CLUSTERIP=m + CONFIG_IP_NF_TARGET_ECN=m + CONFIG_IP_NF_TARGET_TTL=m + CONFIG_IP_NF_RAW=m + CONFIG_IP_NF_ARPTABLES=m + CONFIG_IP_NF_ARPFILTER=m + CONFIG_IP_NF_ARP_MANGLE=m + CONFIG_NFT_DUP_IPV6=m + CONFIG_NFT_FIB_IPV6=m + CONFIG_IP6_NF_IPTABLES=m + CONFIG_IP6_NF_MATCH_AH=m + CONFIG_IP6_NF_MATCH_EUI64=m + CONFIG_IP6_NF_MATCH_FRAG=m + CONFIG_IP6_NF_MATCH_OPTS=m + CONFIG_IP6_NF_MATCH_HL=m + CONFIG_IP6_NF_MATCH_IPV6HEADER=m + CONFIG_IP6_NF_MATCH_MH=m + CONFIG_IP6_NF_MATCH_RPFILTER=m + CONFIG_IP6_NF_MATCH_RT=m + CONFIG_IP6_NF_MATCH_SRH=m + CONFIG_IP6_NF_TARGET_HL=m + CONFIG_IP6_NF_FILTER=m + CONFIG_IP6_NF_TARGET_REJECT=m + CONFIG_IP6_NF_TARGET_SYNPROXY=m + CONFIG_IP6_NF_MANGLE=m + CONFIG_IP6_NF_RAW=m + CONFIG_IP6_NF_NAT=m + CONFIG_IP6_NF_TARGET_MASQUERADE=m + CONFIG_IP6_NF_TARGET_NPT=m + CONFIG_BRIDGE_NF_EBTABLES=m + CONFIG_IP_DCCP=m + CONFIG_RDS=m + CONFIG_RDS_TCP=m + CONFIG_TIPC=m + CONFIG_L2TP=m + CONFIG_L2TP_V3=y + CONFIG_L2TP_IP=m + CONFIG_L2TP_ETH=m + CONFIG_BRIDGE=m + CONFIG_BRIDGE_VLAN_FILTERING=y + CONFIG_VLAN_8021Q=m + CONFIG_VLAN_8021Q_GVRP=y + CONFIG_VLAN_8021Q_MVRP=y + CONFIG_NET_SCHED=y + CONFIG_NET_SCH_CBQ=m + CONFIG_NET_SCH_HTB=m + CONFIG_NET_SCH_HFSC=m + CONFIG_NET_SCH_PRIO=m + CONFIG_NET_SCH_MULTIQ=m + CONFIG_NET_SCH_RED=m + CONFIG_NET_SCH_SFB=m + CONFIG_NET_SCH_SFQ=m + CONFIG_NET_SCH_TEQL=m + CONFIG_NET_SCH_TBF=m + CONFIG_NET_SCH_GRED=m + CONFIG_NET_SCH_DSMARK=m + CONFIG_NET_SCH_NETEM=m + CONFIG_NET_SCH_DRR=m + CONFIG_NET_SCH_MQPRIO=m + CONFIG_NET_SCH_CHOKE=m + CONFIG_NET_SCH_QFQ=m + CONFIG_NET_SCH_CODEL=m + CONFIG_NET_SCH_FQ_CODEL=m + CONFIG_NET_SCH_FQ=m + CONFIG_NET_SCH_HHF=m + CONFIG_NET_SCH_PIE=m + CONFIG_NET_SCH_PLUG=m + CONFIG_NET_CLS_BASIC=m + CONFIG_NET_CLS_TCINDEX=m + CONFIG_NET_CLS_ROUTE4=m + CONFIG_NET_CLS_FW=m + CONFIG_NET_CLS_U32=m + CONFIG_CLS_U32_PERF=y + CONFIG_CLS_U32_MARK=y + CONFIG_NET_CLS_RSVP=m + CONFIG_NET_CLS_RSVP6=m + CONFIG_NET_CLS_FLOW=m + CONFIG_NET_CLS_CGROUP=m + CONFIG_NET_CLS_BPF=m + CONFIG_NET_CLS_FLOWER=m + CONFIG_NET_EMATCH=y + CONFIG_NET_EMATCH_CMP=m + CONFIG_NET_EMATCH_NBYTE=m + CONFIG_NET_EMATCH_U32=m + CONFIG_NET_EMATCH_META=m + CONFIG_NET_EMATCH_TEXT=m + CONFIG_NET_CLS_ACT=y + CONFIG_NET_ACT_POLICE=m + CONFIG_NET_ACT_GACT=m + CONFIG_GACT_PROB=y + CONFIG_NET_ACT_MIRRED=m + CONFIG_NET_ACT_IPT=m + CONFIG_NET_ACT_NAT=m + CONFIG_NET_ACT_PEDIT=m + CONFIG_NET_ACT_SIMP=m + CONFIG_NET_ACT_SKBEDIT=m + CONFIG_NET_ACT_CSUM=m + CONFIG_NET_ACT_VLAN=m + CONFIG_NET_ACT_BPF=m + CONFIG_NET_ACT_CONNMARK=m + CONFIG_DNS_RESOLVER=y + CONFIG_VSOCKETS=m + CONFIG_VIRTIO_VSOCKETS=m + CONFIG_NETLINK_DIAG=m + CONFIG_CGROUP_NET_PRIO=y + CONFIG_BT=m + CONFIG_BT_HCIBTUSB=m + CONFIG_BT_HCIUART=m + CONFIG_BT_HCIUART_BCSP=y + CONFIG_BT_HCIUART_ATH3K=y + CONFIG_BT_HCIUART_INTEL=y + CONFIG_BT_HCIUART_QCA=y + CONFIG_BT_HCIBCM203X=m + CONFIG_BT_HCIBPA10X=m + CONFIG_BT_HCIBFUSB=m + CONFIG_BT_HCIVHCI=m + CONFIG_BT_MRVL=m + CONFIG_BT_ATH3K=m + # CONFIG_WIRELESS is not set + CONFIG_PCI=y + CONFIG_PCIEPORTBUS=y + CONFIG_PCI_IOV=y + CONFIG_DEVTMPFS=y + CONFIG_DEVTMPFS_MOUNT=y + CONFIG_CONNECTOR=y + CONFIG_PARPORT=y + CONFIG_PARPORT_PC=y + CONFIG_BLK_DEV_FD=m + CONFIG_BLK_DEV_LOOP=y + CONFIG_BLK_DEV_CRYPTOLOOP=y + CONFIG_BLK_DEV_DRBD=y + CONFIG_BLK_DEV_NBD=m + CONFIG_BLK_DEV_RAM=y + CONFIG_CDROM_PKTCDVD=y + CONFIG_VIRTIO_BLK=m + CONFIG_BLK_DEV_NVME=y + CONFIG_ENCLOSURE_SERVICES=y + CONFIG_BLK_DEV_SD=y + CONFIG_BLK_DEV_SR=y + CONFIG_CHR_DEV_SG=y + CONFIG_SCSI_ENCLOSURE=y + CONFIG_SCSI_CONSTANTS=y + CONFIG_SCSI_LOGGING=y + CONFIG_SCSI_SCAN_ASYNC=y + CONFIG_SCSI_FC_ATTRS=y + CONFIG_SCSI_SAS_LIBSAS=y + CONFIG_SCSI_SAS_ATA=y + CONFIG_ISCSI_TCP=m + CONFIG_BLK_DEV_3W_XXXX_RAID=m + CONFIG_SCSI_HPSA=y + CONFIG_SCSI_3W_9XXX=m + CONFIG_SCSI_3W_SAS=m + CONFIG_SCSI_AACRAID=m + CONFIG_SCSI_AIC7XXX=y + CONFIG_AIC7XXX_RESET_DELAY_MS=15000 + # CONFIG_AIC7XXX_DEBUG_ENABLE is not set + CONFIG_SCSI_AIC79XX=y + CONFIG_AIC79XX_RESET_DELAY_MS=15000 + # CONFIG_AIC79XX_DEBUG_ENABLE is not set + CONFIG_SCSI_AIC94XX=m + # CONFIG_AIC94XX_DEBUG is not set + CONFIG_SCSI_MVSAS=m + CONFIG_SCSI_DPT_I2O=m + CONFIG_SCSI_ARCMSR=m + CONFIG_MEGARAID_NEWGEN=y + CONFIG_MEGARAID_MM=y + CONFIG_MEGARAID_MAILBOX=y + CONFIG_MEGARAID_LEGACY=y + CONFIG_MEGARAID_SAS=y + CONFIG_SCSI_MPT2SAS=y + CONFIG_SCSI_SMARTPQI=m + CONFIG_SCSI_BUSLOGIC=y + CONFIG_SCSI_GDTH=m + CONFIG_SCSI_QLOGIC_1280=y + CONFIG_SCSI_DH=y + CONFIG_ATA=y + CONFIG_SATA_AHCI=y + CONFIG_SATA_SIL24=y + CONFIG_ATA_PIIX=y + CONFIG_SATA_NV=y + CONFIG_SATA_PROMISE=y + CONFIG_SATA_SIL=y + CONFIG_SATA_SIS=y + CONFIG_SATA_SVW=y + CONFIG_SATA_VIA=y + CONFIG_PATA_ATIIXP=y + CONFIG_PATA_JMICRON=y + CONFIG_PATA_MPIIX=y + CONFIG_MD=y + CONFIG_BLK_DEV_MD=y + CONFIG_MD_LINEAR=y + CONFIG_MD_RAID0=y + CONFIG_MD_RAID1=y + CONFIG_MD_RAID456=y + CONFIG_MD_MULTIPATH=y + CONFIG_BLK_DEV_DM=m + CONFIG_DM_CRYPT=m + CONFIG_DM_SNAPSHOT=m + CONFIG_DM_THIN_PROVISIONING=m + CONFIG_DM_MIRROR=m + CONFIG_DM_LOG_USERSPACE=m + CONFIG_DM_RAID=m + CONFIG_DM_ZERO=m + CONFIG_DM_MULTIPATH=m + CONFIG_DM_UEVENT=y + CONFIG_TARGET_CORE=m + CONFIG_ISCSI_TARGET=m + CONFIG_FUSION=y + CONFIG_FUSION_SPI=y + CONFIG_FUSION_FC=y + CONFIG_FUSION_SAS=y + CONFIG_FUSION_CTL=y + CONFIG_NETDEVICES=y + CONFIG_BONDING=m + CONFIG_DUMMY=y + CONFIG_MACVLAN=y + CONFIG_MACVTAP=y + CONFIG_IPVLAN=m + CONFIG_IPVTAP=m + CONFIG_VXLAN=m + CONFIG_NETCONSOLE=m + CONFIG_NETCONSOLE_DYNAMIC=y + CONFIG_TUN=y + CONFIG_VETH=y + CONFIG_VIRTIO_NET=m + CONFIG_NLMON=m + CONFIG_VORTEX=y + CONFIG_TYPHOON=y + CONFIG_ACENIC=y + CONFIG_ATL1=y + CONFIG_BNX2=y + CONFIG_TIGON3=y + CONFIG_BNX2X=y + CONFIG_BNXT=m + CONFIG_CAVIUM_PTP=y + CONFIG_CHELSIO_T1=y + CONFIG_CHELSIO_T3=y + CONFIG_NET_TULIP=y + CONFIG_DE2104X=y + CONFIG_TULIP=y + CONFIG_TULIP_MMIO=y + CONFIG_TULIP_NAPI=y + CONFIG_TULIP_NAPI_HW_MITIGATION=y + CONFIG_DE4X5=y + CONFIG_DL2K=y + CONFIG_E100=y + CONFIG_E1000=y + CONFIG_E1000E=y + CONFIG_IGB=y + CONFIG_IGBVF=y + CONFIG_IXGB=m + CONFIG_IXGBE=m + CONFIG_I40E=m + CONFIG_SKGE=y + CONFIG_SKY2=y + CONFIG_S2IO=y + CONFIG_FORCEDETH=y + CONFIG_NETXEN_NIC=m + CONFIG_8139CP=y + CONFIG_8139TOO=y + CONFIG_R8169=y + CONFIG_SIS900=y + CONFIG_SIS190=y + CONFIG_VIA_RHINE=y + CONFIG_VIA_VELOCITY=y + # CONFIG_WLAN is not set + CONFIG_INPUT_POLLDEV=y + CONFIG_INPUT_EVDEV=y + # CONFIG_SERIO_SERPORT is not set + # CONFIG_LEGACY_PTYS is not set + CONFIG_DEVKMEM=y + CONFIG_SERIAL_8250=y + # CONFIG_SERIAL_8250_DEPRECATED_OPTIONS is not set + CONFIG_SERIAL_8250_CONSOLE=y + CONFIG_SERIAL_DEV_BUS=m + CONFIG_PRINTER=y + CONFIG_VIRTIO_CONSOLE=m + CONFIG_IPMI_HANDLER=y + CONFIG_IPMI_DEVICE_INTERFACE=m + CONFIG_IPMI_SI=m + CONFIG_IPMI_WATCHDOG=m + CONFIG_IPMI_POWEROFF=m + CONFIG_HPET=y + CONFIG_I2C_CHARDEV=m + CONFIG_I2C_AMD756=m + CONFIG_I2C_AMD756_S4882=m + CONFIG_I2C_AMD8111=m + CONFIG_I2C_I801=y + CONFIG_I2C_ISCH=m + CONFIG_I2C_PIIX4=m + CONFIG_I2C_NFORCE2=m + CONFIG_I2C_NFORCE2_S4985=m + CONFIG_I2C_SIS5595=m + CONFIG_I2C_SIS630=m + CONFIG_I2C_SIS96X=m + CONFIG_I2C_VIA=m + CONFIG_I2C_VIAPRO=m + CONFIG_GPIOLIB=y + CONFIG_SENSORS_K8TEMP=m + CONFIG_SENSORS_K10TEMP=m + CONFIG_SENSORS_FAM15H_POWER=m + CONFIG_WATCHDOG=y + CONFIG_WATCHDOG_CORE=y + CONFIG_I6300ESB_WDT=m + CONFIG_ITCO_WDT=m + CONFIG_ITCO_VENDOR_SUPPORT=y + CONFIG_HP_WATCHDOG=m + CONFIG_NV_TCO=m + CONFIG_LPC_ICH=y + CONFIG_MEDIA_SUPPORT=y + CONFIG_AGP=y + CONFIG_AGP_AMD64=y + CONFIG_AGP_INTEL=m + CONFIG_AGP_SIS=m + CONFIG_AGP_VIA=m + CONFIG_DRM=m + CONFIG_DRM_AMDGPU=m + CONFIG_DRM_AMDGPU_SI=y + CONFIG_DRM_AMDGPU_CIK=y + CONFIG_DRM_AMDGPU_USERPTR=y + CONFIG_DRM_NOUVEAU=m + CONFIG_DRM_I915=m + CONFIG_DRM_VGEM=m + CONFIG_DRM_UDL=m + CONFIG_DRM_MGAG200=m + CONFIG_DRM_CIRRUS_QEMU=m + CONFIG_DRM_BOCHS=m + CONFIG_FB=y + CONFIG_FB_CIRRUS=m + CONFIG_FB_PM2=m + CONFIG_FB_CYBER2000=m + CONFIG_FB_ARC=m + CONFIG_FB_VGA16=m + CONFIG_FB_EFI=y + CONFIG_FB_NVIDIA=m + CONFIG_FB_NVIDIA_I2C=y + CONFIG_FB_NVIDIA_DEBUG=y + CONFIG_FB_I740=m + CONFIG_FB_LE80578=m + CONFIG_FB_CARILLO_RANCH=m + CONFIG_FB_MATROX=m + CONFIG_FB_MATROX_MILLENIUM=y + CONFIG_FB_MATROX_MYSTIQUE=y + CONFIG_FB_MATROX_G=y + CONFIG_FB_MATROX_I2C=m + CONFIG_FB_RADEON=m + CONFIG_FB_RADEON_DEBUG=y + CONFIG_FB_SMSCUFX=m + CONFIG_FB_UDL=m + CONFIG_FB_IBM_GXT4500=m + CONFIG_FB_SIMPLE=y + CONFIG_BACKLIGHT_CLASS_DEVICE=y + CONFIG_BACKLIGHT_APPLE=m + CONFIG_BACKLIGHT_PM8941_WLED=m + CONFIG_BACKLIGHT_SAHARA=m + CONFIG_BACKLIGHT_ADP8860=m + CONFIG_BACKLIGHT_ADP8870=m + CONFIG_BACKLIGHT_LM3639=m + CONFIG_BACKLIGHT_LV5207LP=m + CONFIG_BACKLIGHT_BD6107=m + CONFIG_BACKLIGHT_ARCXCNN=m + CONFIG_VGACON_SOFT_SCROLLBACK=y + CONFIG_VGACON_SOFT_SCROLLBACK_SIZE=256 + CONFIG_SOUND=m + CONFIG_SND=m + CONFIG_SND_CTXFI=m + CONFIG_SND_EMU10K1=m + CONFIG_SND_EMU10K1X=m + CONFIG_SND_ENS1370=m + CONFIG_SND_ENS1371=m + CONFIG_SND_ES1938=m + CONFIG_SND_ES1968=m + CONFIG_SND_INTEL8X0=m + CONFIG_SND_SONICVIBES=m + CONFIG_SND_VIA82XX=m + CONFIG_SND_VIA82XX_MODEM=m + CONFIG_SND_YMFPCI=m + CONFIG_SND_HDA_INTEL=m + CONFIG_SND_HDA_CODEC_REALTEK=m + CONFIG_SND_HDA_CODEC_ANALOG=m + CONFIG_SND_HDA_CODEC_SIGMATEL=m + CONFIG_SND_HDA_CODEC_VIA=m + CONFIG_SND_HDA_CODEC_HDMI=m + CONFIG_SND_HDA_CODEC_CIRRUS=m + CONFIG_SND_HDA_CODEC_CONEXANT=m + CONFIG_SND_HDA_CODEC_CA0110=m + CONFIG_SND_HDA_CODEC_CA0132=m + CONFIG_SND_HDA_CODEC_CMEDIA=m + CONFIG_SND_HDA_CODEC_SI3054=m + CONFIG_SND_USB_AUDIO=m + CONFIG_HIDRAW=y + CONFIG_HID_DRAGONRISE=y + CONFIG_HID_KYE=y + CONFIG_HID_GYRATION=y + CONFIG_HID_TWINHAN=y + CONFIG_HID_LED=m + CONFIG_HID_LOGITECH_DJ=m + CONFIG_HID_NTRIG=y + CONFIG_HID_ORTEK=y + CONFIG_HID_PANTHERLORD=y + CONFIG_HID_PETALYNX=y + CONFIG_HID_SAMSUNG=y + CONFIG_HID_SUNPLUS=y + CONFIG_HID_GREENASIA=y + CONFIG_HID_SMARTJOYPLUS=y + CONFIG_HID_TOPSEED=y + CONFIG_HID_THRUSTMASTER=y + CONFIG_HID_ZEROPLUS=y + CONFIG_USB=y + CONFIG_USB_XHCI_HCD=y + CONFIG_USB_EHCI_HCD=y + # CONFIG_USB_EHCI_TT_NEWSCHED is not set + CONFIG_USB_OHCI_HCD=y + CONFIG_USB_UHCI_HCD=y + CONFIG_USB_SL811_HCD=y + CONFIG_USB_STORAGE=y + CONFIG_USB_SERIAL=y + CONFIG_USB_SERIAL_FTDI_SIO=m + CONFIG_USB_SERIAL_PL2303=m + CONFIG_USB_CHAOSKEY=m + CONFIG_EDAC=y + CONFIG_EDAC_DECODE_MCE=m + CONFIG_EDAC_AMD64=m + CONFIG_EDAC_E752X=m + CONFIG_EDAC_I82975X=m + CONFIG_EDAC_I3000=m + CONFIG_EDAC_I3200=m + CONFIG_EDAC_IE31200=m + CONFIG_EDAC_X38=m + CONFIG_EDAC_I5400=m + CONFIG_EDAC_I7CORE=m + CONFIG_EDAC_I5000=m + CONFIG_EDAC_I5100=m + CONFIG_EDAC_I7300=m + CONFIG_EDAC_SBRIDGE=m + CONFIG_EDAC_SKX=m + CONFIG_RTC_CLASS=y + # CONFIG_RTC_INTF_PROC is not set + CONFIG_VIRTIO_PCI=m + CONFIG_VIRTIO_BALLOON=m + CONFIG_VIRTIO_INPUT=m + CONFIG_DELL_RBU=m + CONFIG_AMD_IOMMU=y + CONFIG_AMD_IOMMU_V2=m + CONFIG_INTEL_IOMMU=y + CONFIG_IRQ_REMAP=y + CONFIG_EXT2_FS=y + CONFIG_EXT3_FS=m + CONFIG_EXT3_FS_POSIX_ACL=y + CONFIG_EXT4_FS_SECURITY=y + CONFIG_REISERFS_FS=y + CONFIG_REISERFS_PROC_INFO=y + CONFIG_REISERFS_FS_XATTR=y + CONFIG_REISERFS_FS_POSIX_ACL=y + CONFIG_XFS_FS=y + CONFIG_XFS_QUOTA=y + CONFIG_XFS_POSIX_ACL=y + CONFIG_XFS_RT=y + CONFIG_BTRFS_FS=m + CONFIG_BTRFS_FS_POSIX_ACL=y + CONFIG_FANOTIFY=y + CONFIG_QUOTA=y + CONFIG_QUOTA_NETLINK_INTERFACE=y + # CONFIG_PRINT_QUOTA_WARNING is not set + CONFIG_QFMT_V2=m + CONFIG_AUTOFS4_FS=m + CONFIG_FUSE_FS=m + CONFIG_OVERLAY_FS=m + CONFIG_FSCACHE=y + CONFIG_FSCACHE_STATS=y + CONFIG_FSCACHE_HISTOGRAM=y + CONFIG_FSCACHE_DEBUG=y + CONFIG_CACHEFILES=y + CONFIG_CACHEFILES_DEBUG=y + CONFIG_CACHEFILES_HISTOGRAM=y + CONFIG_ISO9660_FS=m + CONFIG_JOLIET=y + CONFIG_ZISOFS=y + CONFIG_UDF_FS=m + CONFIG_MSDOS_FS=m + CONFIG_VFAT_FS=m + CONFIG_NTFS_FS=m + CONFIG_PROC_KCORE=y + CONFIG_TMPFS_POSIX_ACL=y + CONFIG_HUGETLBFS=y + CONFIG_ECRYPT_FS=m + CONFIG_ECRYPT_FS_MESSAGING=y + CONFIG_SQUASHFS=m + CONFIG_SQUASHFS_XATTR=y + CONFIG_SQUASHFS_LZ4=y + CONFIG_SQUASHFS_LZO=y + CONFIG_SQUASHFS_XZ=y + CONFIG_SQUASHFS_4K_DEVBLK_SIZE=y + CONFIG_SQUASHFS_EMBEDDED=y + CONFIG_PSTORE=m + CONFIG_NFS_FS=m + CONFIG_NFS_V3_ACL=y + CONFIG_NFS_V4=m + CONFIG_NFS_SWAP=y + CONFIG_NFS_V4_1=y + CONFIG_NFS_V4_2=y + CONFIG_NFS_FSCACHE=y + CONFIG_NFSD=m + CONFIG_NFSD_V3_ACL=y + CONFIG_NFSD_V4=y + CONFIG_SUNRPC_DEBUG=y + CONFIG_CEPH_FS=m + CONFIG_CEPH_FSCACHE=y + CONFIG_CEPH_FS_POSIX_ACL=y + CONFIG_CIFS=m + CONFIG_CIFS_XATTR=y + CONFIG_NLS_CODEPAGE_437=m + CONFIG_NLS_CODEPAGE_850=m + CONFIG_NLS_CODEPAGE_852=m + CONFIG_NLS_ISO8859_1=m + CONFIG_NLS_UTF8=m + CONFIG_DLM=m + CONFIG_SECURITY=y + CONFIG_SECURITYFS=y + CONFIG_SECURITY_LOCKDOWN_LSM=y + CONFIG_CRYPTO_CTS=m + CONFIG_CRYPTO_ECB=y + CONFIG_CRYPTO_PCBC=y + CONFIG_CRYPTO_CMAC=y + CONFIG_CRYPTO_HMAC=y + CONFIG_CRYPTO_MD4=y + CONFIG_CRYPTO_SHA256=y + CONFIG_CRYPTO_AES=y + CONFIG_CRYPTO_ARC4=y + CONFIG_CRYPTO_DES=y + CONFIG_CRC16=y + CONFIG_CRC_ITU_T=y + CONFIG_FONTS=y + CONFIG_FONT_8x8=y + CONFIG_FONT_7x14=y + CONFIG_FONT_PEARL_8x8=y + CONFIG_FONT_ACORN_8x8=y + CONFIG_FONT_MINI_4x6=y + CONFIG_FONT_10x18=y + CONFIG_FONT_SUN8x16=y + CONFIG_FONT_SUN12x22=y + CONFIG_FONT_TER16x32=y + CONFIG_PRINTK_TIME=y + CONFIG_DYNAMIC_DEBUG=y + CONFIG_DEBUG_INFO=y + CONFIG_MAGIC_SYSRQ=y + CONFIG_DEBUG_KERNEL=y + CONFIG_FUNCTION_TRACER=y + CONFIG_FTRACE_SYSCALLS=y + CONFIG_BLK_DEV_IO_TRACE=y + CONFIG_FUNCTION_PROFILER=y + CONFIG_MEMTEST=y + CONFIG_EARLY_PRINTK_DBGP=y +EOF + cp config-from-bee-file .config + make olddefconfig +} + +mee_build() { + echo "build $@" + make ${BEE_MAKEFLAGS} +} + +mee_install() { + echo "install $@" + + make modules_install INSTALL_MOD_PATH=${D} + make install INSTALL_PATH=${D}/boot + + rm -v ${D}/lib/modules/${FULLKERNELVERSION}/{source,build} + + ln -sv /usr/src/linux/${PKGALLPKG}/source ${D}/lib/modules/${FULLKERNELVERSION}/source + ln -sv /usr/src/linux/${PKGALLPKG}/build ${D}/lib/modules/${FULLKERNELVERSION}/build + + ln -sv bzImage-${FULLKERNELVERSION} ${D}/boot/mariux.${PKGREVISION} +} diff --git a/nvidia_linux-5.4.57-340-440.44-0.bee b/nvidia_linux-5.4.57-340-440.44-0.bee new file mode 100755 index 000000000..a8cf301ba --- /dev/null +++ b/nvidia_linux-5.4.57-340-440.44-0.bee @@ -0,0 +1,60 @@ +#!/bin/env beesh + +NVIDIA_ARCHIVE="NVIDIA-Linux-x86_64-${PKGVERSION}.run" + +SRCURL[0]="https://download.nvidia.com/XFree86/Linux-x86_64/${PKGVERSION}/${NVIDIA_ARCHIVE}" + +PATCHURL+=() + +LINUXPKG=${PKGEXTRANAME}.${ARCH} + +LINUXKLOCALVER=$(beeversion --format "%v.mx64.%r" "${LINUXPKG}") + +# '4.4.mx64.75' to '4.4.0.mx64.75' +if [[ $LINUXKLOCALVER =~ ^([0-9]+\.[0-9]+)(\.mx64.*) ]]; then + LINUXKLOCALVER="${BASH_REMATCH[1]}.0${BASH_REMATCH[2]}" +fi + + +build_in_sourcedir +sourcesubdir_append kernel + +: ${BEE_TMP_TMPDIR:=/tmp} + +mee_extract() { + LINUXBUILDARCHIVE="${BEE_BUILDARCHIVEDIR}/${LINUXPKG}.beebuild.tar.bz2" + + print_info "extracting nvidia archive .." + + start_cmd rmdir ${S} + start_cmd sh ${F}/${NVIDIA_ARCHIVE} -x --target ${S} + + if [ -d "/usr/src/linux/${LINUXPKG}/source" ] ; then + LINUXSRCDIR="/usr/src/linux/${LINUXPKG}/source" + elif [ -d "${BEE_TMP_TMPDIR}/${LINUXPKG}/source" ] ; then + LINUXSRCDIR="${BEE_TMP_TMPDIR}/${LINUXPKG}/source" + else + print_info "extracting linux build ${LINUXPKG} .." + start_cmd gtar -xf "${LINUXBUILDARCHIVE}" -C ${BEE_TMP_TMPDIR} + LINUXSRCDIR="${BEE_TMP_TMPDIR}/${LINUXPKG}/source" + fi + + print_info "using kernel sources from ${LINUXSRCDIR} .." +} + +mee_build_pre() { + ln -s ${LINUXSRCDIR}/include ${S}/include +} + +mee_build() { + IGNORE_CC_MISMATCH=1 \ + make SYSSRC=${LINUXSRCDIR} module +} + +mee_install() { + mkdir -pv ${D}${DATAROOTDIR}/nvidia/kernel/${LINUXKLOCALVER}/${PKGVERSION} + + cp -v *.ko ${D}${DATAROOTDIR}/nvidia/kernel/${LINUXKLOCALVER}/${PKGVERSION}/ + + ln -s ${PKGVERSION} ${D}${DATAROOTDIR}/nvidia/kernel/${LINUXKLOCALVER}/current +}