Luke Ross

Scripts

git clone https://lukeross.name/projects/scripts.git/

Small scripts

Commit 7612518d4b403c07c3b14eb16df4b49f42531450

Update

Committed 3 May 2020 by Luke Ross

RebuildPPA/build.patch

@@ -0,0 +1,46 @@
+diff --git a/debian.master/rules.d/amd64.mk b/debian.master/rules.d/amd64.mk
+index b1f62a796..e63c64740 100644
+--- a/debian.master/rules.d/amd64.mk
++++ b/debian.master/rules.d/amd64.mk
+@@ -21,7 +21,3 @@ do_tools_host = true
+ do_extras_package = true
+ do_tools_common = true
+ do_tools_acpidbg = true
+-do_zfs		= true
+-do_dkms_nvidia  = true
+-do_dkms_vbox    = true
+-do_dkms_wireguard = true
+diff --git a/debian/rules.d/4-checks.mk b/debian/rules.d/4-checks.mk
+index 3ce7e6e6f..43aadc5a9 100644
+--- a/debian/rules.d/4-checks.mk
++++ b/debian/rules.d/4-checks.mk
+@@ -2,19 +2,19 @@
+ abi-check-%: install-%
+ 	@echo Debug: $@
+ 	@perl -f $(DROOT)/scripts/abi-check "$*" "$(prev_abinum)" "$(abinum)" \
+-		"$(prev_abidir)" "$(abidir)" "$(skipabi)"
++		"$(prev_abidir)" "$(abidir)" "$(skipabi)" || true
+ 
+ # Check the module list against the last release (always)
+ module-check-%: install-%
+ 	@echo Debug: $@
+ 	@perl -f $(DROOT)/scripts/module-check "$*" \
+-		"$(prev_abidir)" "$(abidir)" $(skipmodule)
++		"$(prev_abidir)" "$(abidir)" $(skipmodule) || true
+ 
+ # Check the reptoline jmp/call functions against the last release.
+ retpoline-check-%: install-%
+ 	@echo Debug: $@
+ 	$(SHELL) $(DROOT)/scripts/retpoline-check "$*" \
+-		"$(prev_abidir)" "$(abidir)" "$(skipretpoline)" "$(builddir)/build-$*"
++		"$(prev_abidir)" "$(abidir)" "$(skipretpoline)" "$(builddir)/build-$*" || true
+ 
+ checks-%: module-check-% abi-check-% retpoline-check-%
+ 	@echo Debug: $@
+@@ -23,5 +23,5 @@ checks-%: module-check-% abi-check-% retpoline-check-%
+ config-prepare-check-%: $(stampdir)/stamp-prepare-tree-%
+ 	@echo Debug: $@
+ 	@perl -f $(DROOT)/scripts/config-check \
+-		$(builddir)/build-$*/.config "$(arch)" "$*" "$(commonconfdir)" "$(skipconfig)"
++		$(builddir)/build-$*/.config "$(arch)" "$*" "$(commonconfdir)" "$(skipconfig)" || true
+ 


RebuildPPA/rebuild_hwe.pl

@@ -21,10 +21,10 @@ use warnings;
 
 ######### START CONFIG ########
 my $ARCH = "amd64";
-my $NEW_FLAVOUR = "lr";
+my $NEW_FLAVOUR = "lukeross";
 my $BASE_FLAVOUR = "generic";
-my $CUSTOM_PATCH = "/home/lukeross/enable_additional_cpu_optimizations_for_gcc_v8.1+_kernel_v4.13+.patch";
-my $BUILD_TYPE = "hwe";
+my $CUSTOM_PATCH = "build.patch";
+my $BUILD_TYPE = "master";
 ########## END CONFIG #########
 
 use Cwd;
@@ -110,143 +110,72 @@ system("fakeroot", "debian/rules", "binary-$NEW_FLAVOUR");
 END { chdir($prevdir) if $prevdir; }
 
 __DATA__
+# CONFIG_SGETMASK_SYSCALL is not set
+# CONFIG_SYSFS_SYSCALL is not set
+# CONFIG_KALLSYMS_ALL is not set
 # CONFIG_PC104 is not set
+# CONFIG_SLUB_DEBUG is not set
+# CONFIG_X86_MPPARSE is not set
 # CONFIG_X86_EXTENDED_PLATFORM is not set
 # CONFIG_HYPERVISOR_GUEST is not set
-# CONFIG_MK8SSE3 is not set
-# CONFIG_MK10 is not set
-# CONFIG_MBARCELONA is not set
-# CONFIG_MBOBCAT is not set
-# CONFIG_MJAGUAR is not set
-# CONFIG_MBULLDOZER is not set
-# CONFIG_MPILEDRIVER is not set
-# CONFIG_MSTEAMROLLER is not set
-# CONFIG_MEXCAVATOR is not set
-CONFIG_MZEN=y
-# CONFIG_MCORE2 is not set
-# CONFIG_MNEHALEM is not set
-# CONFIG_MWESTMERE is not set
-# CONFIG_MSILVERMONT is not set
-# CONFIG_MSANDYBRIDGE is not set
-# CONFIG_MIVYBRIDGE is not set
-# CONFIG_MHASWELL is not set
-# CONFIG_MBROADWELL is not set
-# CONFIG_MSKYLAKE is not set
-# CONFIG_MSKYLAKEX is not set
-# CONFIG_MCANNONLAKE is not set
-# CONFIG_MICELAKE is not set
-# CONFIG_GENERIC_CPU is not set
-# CONFIG_MNATIVE is not set
-# CONFIG_CPU_SUP_INTEL is not set
 # CONFIG_CPU_SUP_HYGON is not set
 # CONFIG_CPU_SUP_CENTAUR is not set
+# CONFIG_CPU_SUP_ZHAOXIN is not set
 # CONFIG_GART_IOMMU is not set
 # CONFIG_CALGARY_IOMMU is not set
 # CONFIG_MAXSMP is not set
-CONFIG_NR_CPUS_RANGE_BEGIN=2
-CONFIG_NR_CPUS_RANGE_END=512
-CONFIG_NR_CPUS_DEFAULT=64
 CONFIG_NR_CPUS=4
-# CONFIG_X86_MCE_INTEL is not set
+# CONFIG_X86_16BIT is not set
 # CONFIG_NUMA is not set
 # CONFIG_HIBERNATION is not set
+# CONFIG_PM_DEBUG is not set
 CONFIG_PMIC_OPREGION=y
+# CONFIG_CRC_PMIC_OPREGION is not set
 CONFIG_XPOWER_PMIC_OPREGION=y
 # CONFIG_BXT_WC_PMIC_OPREGION is not set
+# CONFIG_CHT_WC_PMIC_OPREGION is not set
 # CONFIG_CHT_DC_TI_PMIC_OPREGION is not set
-CONFIG_X86_POWERNOW_K8=m
-CONFIG_X86_SPEEDSTEP_CENTRINO=m
-CONFIG_EDD=m
-# CONFIG_AIX_PARTITION is not set
-# CONFIG_OSF_PARTITION is not set
-# CONFIG_AMIGA_PARTITION is not set
-# CONFIG_ATARI_PARTITION is not set
-# CONFIG_SGI_PARTITION is not set
-# CONFIG_ULTRIX_PARTITION is not set
-# CONFIG_SUN_PARTITION is not set
-# CONFIG_KARMA_PARTITION is not set
+# CONFIG_ISA_BUS is not set
+# CONFIG_KPROBES is not set
 # CONFIG_MEMORY_HOTPLUG is not set
-# CONFIG_MEMORY_FAILURE is not set
-# CONFIG_DCB is not set
-CONFIG_BLK_DEV_LOOP=m
-CONFIG_ATA_PIIX=m
-CONFIG_ATA_GENERIC=m
-CONFIG_BLK_DEV_MD=m
-CONFIG_BLK_DEV_DM=m
-CONFIG_TUN=m
-CONFIG_MDIO_DEVICE=m
-CONFIG_MDIO_BUS=m
-CONFIG_PHYLIB=m
-CONFIG_FIXED_PHY=m
-CONFIG_PPP=m
-CONFIG_SLHC=m
-CONFIG_KEYBOARD_ATKBD=m
-CONFIG_SERIO_I8042=m
-CONFIG_SERIO_LIBPS2=m
+# CONFIG_EISA is not set
+# CONFIG_HOTPLUG_PCI is not set
 CONFIG_SERIAL_8250=m
 CONFIG_SERIAL_8250_PCI=m
+CONFIG_SERIAL_MAX310X=m
+CONFIG_SERIAL_CORE=m
+CONFIG_SERIAL_SCCNXP=m
+CONFIG_SERIAL_MCTRL_GPIO=m
 # CONFIG_AGP is not set
 CONFIG_INTEL_GTT=m
+# CONFIG_VGA_ARB is not set
 # CONFIG_VGA_SWITCHEROO is not set
-CONFIG_USB_EHCI_HCD=m
-CONFIG_USB_EHCI_PCI=m
-CONFIG_USB_EHCI_HCD_PLATFORM=m
 CONFIG_USB_OHCI_HCD=m
 CONFIG_USB_OHCI_HCD_PCI=m
 # CONFIG_USB_OHCI_HCD_SSB is not set
 CONFIG_USB_OHCI_HCD_PLATFORM=m
-CONFIG_USB_UHCI_HCD=m
+# CONFIG_VIRTIO_PCI is not set
+# CONFIG_VIRTIO_MMIO is not set
 CONFIG_SQUASHFS=m
 # CONFIG_SECURITY_SELINUX is not set
 # CONFIG_SECURITY_SMACK is not set
 # CONFIG_SECURITY_TOMOYO is not set
 # CONFIG_IMA is not set
-# CONFIG_EVM is not set
 CONFIG_ZSTD_DECOMPRESS=m
-# CONFIG_EARLY_PRINTK_DBGP is not set
-# CONFIG_RD_BZIP2 is not set
-# CONFIG_RD_LZMA is not set
-# CONFIG_KALLSYMS_ALL is not set
-# CONFIG_X86_MPPARSE is not set
-# CONFIG_CPU_SUP_HYGON is not set
-# CONFIG_X86_INTEL_MPX is not set
-# CONFIG_SFI is not set
-# CONFIG_HOTPLUG_PCI_CPCI is not set
-# CONFIG_HOTPLUG_PCI_SHPC is not set
-# CONFIG_PCIE_DW_PLAT_HOST is not set
-# CONFIG_PCI_ENDPOINT is not set
-# CONFIG_RAPIDIO is not set
-# CONFIG_SYSV68_PARTITION is not set
-# CONFIG_SRAM is not set
-# CONFIG_MEGARAID_NEWGEN is not set
-# CONFIG_FDDI is not set
-CONFIG_RANDOM_TRUST_CPU=y
-CONFIG_EDAC=m
-# CONFIG_UNISYSSPAR is not set
-# CONFIG_CRC_PMIC_OPREGION is not set
-# CONFIG_CHT_WC_PMIC_OPREGION is not set
-# CONFIG_X86_CPU_RESCTRL is not set
-# CONFIG_NCSI_OEM_CMD_GET_MAC is not set
-# CONFIG_EISA is not set
-# CONFIG_PCI_MESON is not set
-CONFIG_REGMAP_I2C=m
-CONFIG_TOUCHSCREEN_ELAN=m
-CONFIG_I2C=m
-CONFIG_I2C_CHARDEV=m
-CONFIG_I2C_DESIGNWARE_CORE=m
-CONFIG_I2C_DESIGNWARE_PLATFORM=m
-CONFIG_MFD_DA9063=m
-CONFIG_MFD_MAX14577=m
-CONFIG_MFD_MAX77693=m
-CONFIG_MFD_TPS65912_I2C=m
-CONFIG_DRM_PANEL_ORIENTATION_QUIRKS=m
-CONFIG_FB=m
-CONFIG_FB_CFB_FILLRECT=m
-CONFIG_FB_CFB_COPYAREA=m
-CONFIG_FB_CFB_IMAGEBLIT=m
-CONFIG_RTC_I2C_AND_SPI=m
-# CONFIG_ANDROID is not set
-# CONFIG_FONTS is not set
+# CONFIG_DYNAMIC_DEBUG is not set
+# CONFIG_DEBUG_INFO is not set
+# CONFIG_MAGIC_SYSRQ is not set
+# CONFIG_DEBUG_MISC is not set
+# CONFIG_SCHED_DEBUG is not set
+# CONFIG_SCHEDSTATS is not set
+# CONFIG_STACKTRACE is not set
+# CONFIG_DEBUG_BUGVERBOSE is not set
+# CONFIG_FTRACE is not set
 # CONFIG_RUNTIME_TESTING_MENU is not set
+# CONFIG_MEMTEST is not set
 # CONFIG_SAMPLES is not set
-# CONFIG_EARLY_PRINTK_USB_XDBC is not set
+# CONFIG_KGDB is not set
+# CONFIG_X86_DEBUG_FPU is not set
+# CONFIG_PUNIT_ATOM_DEBUG is not set
+# CONFIG_UNWINDER_FRAME_POINTER is not set
+CONFIG_UNWINDER_GUESS=y