linuxPackages_hardkernel_latest.usbip: pull upstream fix for -fno-common toolchains

Without the change builds fails on upstream -gcc-10 as:

ld: tools/usb/usbip/libsrc/vhci_driver.c:18: multiple definition of
`udev_context'; tools/usb/usbip/libsrc/usbip_host_common.c:38: first defined here

+11 -3
+9 -1
pkgs/os-specific/linux/kernel/linux-hardkernel-4.14.nix
··· 1 - { buildPackages, fetchFromGitHub, perl, buildLinux, libelf, util-linux, ... } @ args: 1 + { buildPackages, fetchFromGitHub, fetchurl, perl, buildLinux, libelf, util-linux, kernelPatches ? [], ... } @ args: 2 2 3 3 buildLinux (args // rec { 4 4 version = "4.14.180-176"; ··· 15 15 rev = version; 16 16 sha256 = "0n7i7a2bkrm9p1wfr20h54cqm32fbjvwyn703r6zm1f6ivqhk43v"; 17 17 }; 18 + 19 + kernelPatches = args.kernelPatches ++ [{ 20 + name = "usbip-tools-fno-common"; 21 + patch = fetchurl { 22 + url = "https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/patch/?id=d5efc2e6b98fe661dbd8dd0d5d5bfb961728e57a"; 23 + hash = "sha256-1CXYCV5zMLA4YdbCr8cO2N4CHEDzQChS9qbKYHPm3U4="; 24 + }; 25 + }]; 18 26 19 27 defconfig = "odroidxu4_defconfig"; 20 28
+2 -2
pkgs/os-specific/linux/usbip/default.nix
··· 1 - { lib, stdenv, kernel, udev, autoconf, automake, libtool, hwdata, kernelOlder }: 1 + { lib, stdenv, fetchpatch, kernel, udev, autoconf, automake, libtool, hwdata, kernelOlder }: 2 2 3 3 stdenv.mkDerivation { 4 4 name = "usbip-${kernel.name}"; ··· 10 10 ./fix-snprintf-truncation.patch 11 11 # fixes build with gcc9 12 12 ./fix-strncpy-truncation.patch 13 - ]; 13 + ] ++ kernel.patches; 14 14 15 15 nativeBuildInputs = [ autoconf automake libtool ]; 16 16 buildInputs = [ udev ];