From mboxrd@z Thu Jan 1 00:00:00 1970 From: Efraim Flashner Subject: custom kernel config Date: Mon, 1 Apr 2019 21:04:34 +0300 Message-ID: <20190401180434.GF21029@macbook41> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="bFsKbPszpzYNtEU6" Return-path: Received: from eggs.gnu.org ([209.51.188.92]:36510) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hB1HU-0004av-Jt for guix-devel@gnu.org; Mon, 01 Apr 2019 14:03:37 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hB1HT-0003B6-Aa for guix-devel@gnu.org; Mon, 01 Apr 2019 14:03:36 -0400 Received: from flashner.co.il ([178.62.234.194]:50628) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hB1HS-0003Ao-QL for guix-devel@gnu.org; Mon, 01 Apr 2019 14:03:35 -0400 Received: from localhost (unknown [141.226.15.124]) by flashner.co.il (Postfix) with ESMTPSA id D02B340223 for ; Mon, 1 Apr 2019 18:03:33 +0000 (UTC) Content-Disposition: inline List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: guix-devel@gnu.org --bFsKbPszpzYNtEU6 Content-Type: multipart/mixed; boundary="b8GWCKCLzrXbuNet" Content-Disposition: inline --b8GWCKCLzrXbuNet Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable I'm playing around with the idea of creating a custom kernel for my laptop and I started by following Gentoo's kernel config instructions. I'm including what I have currently. I want to create a kernel which is good for my laptop and takes less time to build than the standard kernel. By leaving the #:configuration-file blank I'm only filling in the fields I supply, right? --=20 Efraim Flashner =D7=90=D7=A4=D7=A8=D7=99=D7=9D = =D7=A4=D7=9C=D7=A9=D7=A0=D7=A8 GPG key =3D A28B F40C 3E55 1372 662D 14F7 41AA E7DC CA3D 8351 Confidentiality cannot be guaranteed on emails sent or received unencrypted --b8GWCKCLzrXbuNet Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="kernel.scm" (define-module (kernel) #:use-module (gnu packages linux)) (define %macbook41-config-options `(("CONFIG_USB_NET_RNDIS_HOST" . m) ("CONFIG_USB_NET_CDCETHER" . m) ("CONFIG_USB_USBNET" . m) ("CONFIG_MII" . m) ("CONFIG_RT8XXXU" . m) ("CONFIG_CRYPTO_ARC4" . m) ("CONFIG_RTL8192CU" . m) ;; rtlusb ("CONFIG_RTL8192C_COMMON" . m) ("CONFIG_RTLWIFI" . m) ("CONFIG_USB_ACM" . m) ("CONFIG_VLAN_8021Q" . m) ("CONFIG_GARP" . m) ("CONFIG_MRP" . m) ("CONFIG_XT_TARGET_CHECKSUM" . m) ("CONFIG_IP_NF_MANGLE" . m) ("CONFIG_IP_TABLE_MASQUERADE" . m) ("CONFIG_IP_NF_NAT" . m) ("CONFIG_NF_NAT_IPV4" . m) ("CONFIG_NF_NAT" . m) ("CONFIG_NETFILTER_XT_MATCH_CONNTRACK" . m) ("CONFIG_NF_CONNTRACK" . m) ("CONFIG_NF_DEFRAG_IPV6" . m) ("CONFIG_NF_DEFRAG_IPV4" . m) ("CONFIG_IP_NF_TARGET_REJECT" . m) ("CONFIG_NF_REJECT_IPV4" . m) ;; tcpudp ("CONFIG_BRIDGE" . m) ("CONFIG_STP" . m) ("CONFIG_LLC" . m) ("CONFIG_BRIDGE_EBT_T_FILTER" . m) ("CONFIG_BRIDGE_EBTABLES" . m) ; ? ("CONFIG_IP6_NF_FILTER" . m) ("CONFIG_IP6_NF_IPTABLES" . m) ("CONFIG_IP_NF_FILTER" . m) ("CONFIG_NET_DEVLINK" . m) ;; one of the two following is corrent ("CONFIG_IP_NF_TABLES" . m) ("CONFIG_IP_NF_IPTABLES" . m) ("CONFIG_NETFILTER_XTABLES" . m) ("CONFIG_FB_INTEL" . m) ("CONFIG_B43" . m) ("CONFIG_BCMA" . m) ("CONFIG_MAC80211" . m) ("CONFIG_INPUT_JOYDEV" . m) ("CONFIG_INPUT_LEDS" . m) ("CONFIG_CFG80211" . m) ("CONFIG_USB_HCD_SSB" . m) ("CONFIG_USB_MOUSE" . m) ("CONFIG_ITCO_WDT" . m) ("CONFIG_ITCO_VENDOR_SUPPORT" . #t) ("CONFIG_USB_KBD" . m) ("CONFIG_MOUSE_APPLETOUCH" . m) ("CONFIG_SENSORS_APPLESMC" . m) ("CONFIG_INPUT_POLLDEV" . m) ("CONFIG_SENSORS_CORETEMP" . m) ("CONFIG_KVM_INTEL" . m) ("CONFIG_KVM" . m) ("CONFIG_HAVE_KVM_IRQ_BYPASS" . #t) ("CONFIG_HID_APPLEIR" . m) ("CONFIG_USB_ISIGHTFW" . m) ("CONFIG_PCSPKR_PLATFORM" . #t) ("CONFIG_I2C_I801" . m) ("CONFIG_SND_HDA_CODEC_REALTEK" . m) ("CONFIG_FIREWIRE_OHCI" . m) ("CONFIG_LPC_ICH" . m) ("CONFIG_CRC_ITU_T" . m) ("CONFIG_SKY2" . m) ("CONFIG_SSB" . m) ("CONFIG_DRM_I915" . m) ("CONFIG_SND_HDA_INTEL" . m) ("CONFIG_ACPI_SBS" . m) ("CONFIG_BATTERY_SBS" . m) ("CONFIG_CHARGER_SBS" . m) ("CONFIG_MANAGER_SBS" . m) ("CONFIG_CEC_CORE" . m) ("CONFIG_DRM_KMS_HELPER" . m) ("CONFIG_SND_HDA_CORE" . m) ("CONFIG_SND_HWDEP" . m) ("CONFIG_SND_PCM" . m) ("CONFIG_DRM" . m) ("CONFIG_ACPI_VIDEO" . m) ("CONFIG_SND_TIMER" . m) ("CONFIG_I2C_ALGOBIT" . m) ("CONFIG_BACKLIGHT_APPLE" . m) ("CONFIG_HID_APPLE" . m) ("CONFIG_FB_SYS_FOPS" . m) ("CONFIG_FB_SYS_COPYAREA" . m) ("CONFIG_FB_SYS_FILLRECT" . m) ("CONFIG_SND" . m) ("CONFIG_FB_SYS_IMAGEBLIT" . m) ("CONFIG_SOUND" . m) ("CONFIG_BTRFS_FS" . m) ("CONFIG_XOR_BLOCKS" . m) ("CONFIG_RAID6_PQ" . m) ("CONFIG_ZSTD_DECOMPRESS" . m) ("CONFIG_ZSTD_COMPRESS" . m) ("CONFIG_XXHASH" . m) ("CONFIG_LIBCRC32C" . m) ("CONFIG_HW_RANDOM_VIRTIO" . m) ("CONFIG_VIRTIO_CONSOLE" . #t) ("CONFIG_VIRTIO_NET" . #t) ("CONFIG_VIRTIO_BLK" . #t) ("CONFIG_VIRTIO_BALLOON" . #t) ("CONFIG_VIRTIO_PCI" . #t) ("CONFIG_VIRTIO" . #t) ;; virtio_ring ("CONFIG_SCSI_ISCI" . m) ("CONFIG_SCSI_SAS_LIBSAS" . m) ("CONFIG_SCSI_SAS_ATTRS" . m) ("CONFIG_PATA_ATIIXP" . m) ("CONFIG_PATA_ACPI" . m) ("CONFIG_NLS_ISO8859_1" . m) ("CONFIG_CRYPTO_WP512" . m) ;; is this not a real flag? ("CONFIG_CRYPTO_GENERIC" . #t) ("CONFIG_CRYPTO_XTS" . m) ("CONFIG_DM_CRYPT" . m) ("CONFIG_HID" . m) ("CONFIG_USB_HID" . m) ("CONFIG_USB_UAS" . m) ("CONFIG_USB_STORAGE" . m) ("CONFIG_SATA_AHCI" . m) ("CONFIG_SATA_AHCI_PLATFORM" . m) ("CONFIG_USB_EHCI_HCD" . #t) ("CONFIG_USB_UHCI_HCD" . #t) ("CONFIG_BT" . m) ("CONFIG_BT_HCIBTUSB" . m) ("CONFIG_BT_BCM" . m) ("CONFIG_BT_RTL" . m) ("CONFIG_BT_INTEL" . m) ;;filesystems ("CONFIG_EXT4_FS" . #t) ("CONFIG_EXT4_USE_FOR_EXT2" . #t) ("CONFIG_XFS_FS" . m) ("CONFIG_MSDOS_FS" . m) ("CONFIG_VFAT_FS" . #t) ("CONFIG_TMPFS" . #t) ("CONFIG_DEVTMPFS" . #t) ("CONFIG_DEVTMPFS_MOUNT" . #t) ("CONFIG_PROC_FS" . #t) ("CONFIG_MSDOS_PARTITION" . #t) ;;efi-support ("CONFIG_EFI_PARTITION" . #t) ("CONFIG_EFIVAR_FS" . #t) ("CONFIG_EFI_MIXED" . #t) ("CONFIG_FW_LOADER" . #t) ("CONFIG_FW_LOADER_USER_HELPER" . #t) ;;%emulation ("CONFIG_IA32_EMULATION" . #t) ("CONFIG_X86_X32" . #t) ;;default-extra-linux-options ("CONFIG_DEVPTS_MULTIPLE_INSTANCES" . #t) ;; Modules required for initrd: ("CONFIG_NET_9P" . m) ("CONFIG_NET_9P_VIRTIO" . m) ("CONFIG_VIRTIO_BLK" . m) ("CONFIG_VIRTIO_NET" . m) ("CONFIG_VIRTIO_PCI" . m) ("CONFIG_VIRTIO_BALLOON" . m) ("CONFIG_VIRTIO_MMIO" . m) ("CONFIG_FUSE_FS" . m) ("CONFIG_CIFS" . m) ("CONFIG_9P_FS" . m) )) (define %filesystems `( ("CONFIG_EXT3_FS" . #t) ("CONFIG_EXT4_FS" . #t) ("CONFIG_XFS_FS" . #t) ("CONFIG_XFS_ONLINE_REPAIR" . #t) ("CONFIG_XFS_ONLINE_SCRUB" . #t) ("CONFIG_MSDOS_FS" . #t) ("CONFIG_VFAT_FS" . #t) ("CONFIG_TMPFS" . #t) ("CONFIG_DEVTMPFS" . #t) ("CONFIG_DEVTMPFS_MOUNT" . #t) ("CONFIG_PROC_FS" . #t) ("CONFIG_MSDOS_PARTITION" . #t) )) (define %efi-support `( ("CONFIG_EFI_PARTITION" . #t) ("CONFIG_EFIVAR_FS" . #t) ("CONFIG_EFI_MIXED" . #t) )) (define %emulation `( ("CONFIG_IA32_EMULATION" . #t) ("CONFIG_X86_X32" . #t) )) (define %macbook41-full-config (cons* %macbook41-config-options %filesystems %efi-support %emulation (@@ (gnu packages linux) %default-extra-linux-options))) (define-public linux-libre-macbook41 ((@@ (gnu packages linux) make-linux-libre) (@@ (gnu packages linux) %linux-libre-version) (@@ (gnu packages linux) %linux-libre-hash) '("x86_64-linux") #:extra-version "macbook41" #:patches (@@ (gnu packages linux) %linux-libre-5.0-patches) #:extra-options %macbook41-config-options)) --b8GWCKCLzrXbuNet-- --bFsKbPszpzYNtEU6 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEoov0DD5VE3JmLRT3Qarn3Mo9g1EFAlyiUq4ACgkQQarn3Mo9 g1G/nxAAiZw8/GT+fIC4zvKhXVRWGct5Yx2b2gpaHqfq11BdzETftkbLoiH6H1HO q+SHiHo6qeKIK7ZwuUcgfVQ/iHOMizLgD2PKwdy0RhTq2DV3ZXPoPtU8GtMrtY/C L907lA1PALksWcj3afhPP+UdBPT09v4i8GblbDL4u5HjkQXWP85dvfHBoQMCqdAf HWQ7t4Ss/BUMZoLnM4xyZI9Tenpajsdx2gXK2VObdXmFt22jz+VyjTH/IN+u1IKP QnEnGrpd74AsY8RonDSnYe21QBshdh7RXjpM4NRsLChJk19BbGrLTKvbIeQS5TWq zs4a+I/p6CAFE5cSS1AiO3ZkYQmtgYb4/qF4Nrz4D9BMN1Kknc1b0T53abxr2gz3 PkXpVWJNYlVwvdMQ9i7k0lcfOUvKNlugluZhAEdadFiuw37LJFrBTSP25Yj9aN7d hrjOQrftSt7zLoaE/s7F4VDn9g/RHbH2hZWs6VTCkL5T1uuYKgYH0AcyCNmrOAZT WKFy0dlY1uq/mq6U/wnjZ2Nk6XgvkJsubwFDZc2EDKc5vIRB8US1B+lp7v87N5N2 MDl3jmbY8CqTzZV72HKCdNbeiQilirhBVwPY50K77iRvgTMm6R0YtgpDS1WQBzg0 mVus7bXecbh7w1V6GmNVlijFY1WS3Nk0Oe16Ggm4YAX+h/vy9PM= =ohsK -----END PGP SIGNATURE----- --bFsKbPszpzYNtEU6--