Advertisement
Guest User

Untitled

a guest
Jun 22nd, 2016
151
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 44.64 KB | None | 0 0
  1. %global __spec_install_pre %{___build_pre}
  2.  
  3. # Define the version of the Linux Kernel Archive tarball.
  4. %define LKAver 4.4.11
  5.  
  6. # Define the buildid, if required.
  7. %define buildid .btrfs_patch
  8.  
  9. # The following build options are enabled by default.
  10. # Use either --without <option> on your rpmbuild command line
  11. # or force the values to 0, here, to disable them.
  12.  
  13. # kernel-lt
  14. %define with_default %{?_without_default: 0} %{?!_without_default: 1}
  15. # kernel-lt-doc
  16. %define with_doc %{?_without_doc: 0} %{?!_without_doc: 1}
  17. # kernel-lt-headers
  18. %define with_headers %{?_without_headers: 0} %{?!_without_headers: 1}
  19. # perf
  20. %define with_perf %{?_without_perf: 0} %{?!_without_perf: 1}
  21. # tools
  22. %define with_tools %{?_without_tools: 0} %{?!_without_tools: 1}
  23.  
  24. # These architectures install vdso/ directories.
  25. %define vdso_arches i686 x86_64
  26.  
  27. # Architecture defaults.
  28. %define asmarch x86
  29. %define buildarch %{_target_cpu}
  30. %define hdrarch %{_target_cpu}
  31.  
  32. # Per-architecture tweaks.
  33.  
  34. %ifarch noarch
  35. # Documentation only.
  36. %define with_default 0
  37. %define with_headers 0
  38. %define with_perf 0
  39. %define with_tools 0
  40. %endif
  41.  
  42. %ifarch i686
  43. # 32-bit kernel-lt, headers, perf & tools.
  44. %define buildarch i386
  45. %define hdrarch i386
  46. %define with_doc 0
  47. %endif
  48.  
  49. %ifarch x86_64
  50. # 64-bit kernel-lt, headers, perf & tools.
  51. %define with_doc 0
  52. %endif
  53.  
  54. # Determine the sublevel number and set pkg_version.
  55. %define sublevel %(echo %{LKAver} | %{__awk} -F\. '{ print $3 }')
  56. %if "%{sublevel}" == ""
  57. %define pkg_version %{LKAver}.0
  58. %else
  59. %define pkg_version %{LKAver}
  60. %endif
  61.  
  62. # Set pkg_release.
  63. %define pkg_release 1%{?buildid}%{?dist}
  64.  
  65. #
  66. # Three sets of minimum package version requirements in the form of Conflicts.
  67. #
  68.  
  69. #
  70. # First the general kernel required versions, as per Documentation/Changes.
  71. #
  72. %define kernel_dot_org_conflicts ppp < 2.4.3-3, isdn4k-utils < 3.2-32, nfs-utils < 1.0.7-12, e2fsprogs < 1.37-4, util-linux < 2.12, jfsutils < 1.1.7-2, reiserfs-utils < 3.6.19-2, xfsprogs < 2.6.13-4, procps < 3.2.5-6.3, oprofile < 0.9.1-2, device-mapper-libs < 1.02.63-2, mdadm < 3.2.1-5
  73.  
  74. #
  75. # Then a series of requirements that are distribution specific, either because
  76. # the older versions have problems with the newer kernel or lack certain things
  77. # that make integration in the distro harder than needed.
  78. #
  79. %define package_conflicts initscripts < 7.23, udev < 063-6, iptables < 1.3.2-1, ipw2200-firmware < 2.4, iwl4965-firmware < 228.57.2, selinux-policy-targeted < 1.25.3-14, squashfs-tools < 4.0, wireless-tools < 29-3
  80.  
  81. #
  82. # We moved the drm include files into kernel-headers, make sure there's
  83. # a recent enough libdrm-devel on the system that doesn't have those.
  84. #
  85. %define kernel_headers_conflicts libdrm-devel < 2.4.0-0.15
  86.  
  87. #
  88. # Packages that need to be installed before the kernel because the %%post scripts make use of them.
  89. #
  90. %define kernel_prereq fileutils, module-init-tools >= 3.16-2, initscripts >= 8.11.1-1, grubby >= 8.28-2
  91. %define initrd_prereq dracut >= 001-7
  92.  
  93. Name: kernel-lt
  94. Summary: The Linux kernel. (The core of any Linux-based operating system.)
  95. Group: System Environment/Kernel
  96. License: GPLv2
  97. URL: https://www.kernel.org/
  98. Version: %{pkg_version}
  99. Release: %{pkg_release}
  100. ##################################
  101. #ExclusiveArch: noarch i686 x86_64
  102. ExclusiveArch: noarch x86_64
  103. ##################################
  104. ExclusiveOS: Linux
  105. Provides: kernel = %{version}-%{release}
  106. Provides: kernel-%{_target_cpu} = %{version}-%{release}
  107. Provides: kernel-uname-r = %{version}-%{release}.%{_target_cpu}
  108. Provides: kernel-drm = 4.3.0
  109. Provides: kernel-drm-nouveau = 16
  110. Provides: kernel-modeset = 1
  111. Provides: %{name} = %{version}-%{release}
  112. Provides: %{name}-%{_target_cpu} = %{version}-%{release}
  113. Provides: %{name}-uname-r = %{version}-%{release}.%{_target_cpu}
  114. Provides: %{name}-drm = 4.3.0
  115. Provides: %{name}-drm-nouveau = 16
  116. Provides: %{name}-modeset = 1
  117. Requires(pre): %{kernel_prereq}
  118. Requires(pre): %{initrd_prereq}
  119. Requires(pre): linux-firmware >= 20100806-2
  120. Requires(post): %{_sbindir}/new-kernel-pkg
  121. Requires(preun): %{_sbindir}/new-kernel-pkg
  122. Conflicts: %{kernel_dot_org_conflicts}
  123. Conflicts: %{package_conflicts}
  124. # We can't let RPM do the dependencies automatically because it'll then pick up
  125. # a correct but undesirable perl dependency from the module headers which
  126. # isn't required for the kernel-lt proper to function.
  127. AutoReq: no
  128. AutoProv: yes
  129.  
  130. #
  131. # List the packages used during the kernel-lt build.
  132. #
  133. BuildRequires: asciidoc, bash >= 2.03, bc, binutils >= 2.12, diffutils, findutils
  134. BuildRequires: gawk, gcc >= 3.4.2, gzip, hostname, m4, make >= 3.78, module-init-tools
  135. BuildRequires: net-tools, openssl, openssl-devel, patch >= 2.5.4, perl
  136. BuildRequires: redhat-rpm-config >= 9.1.0-55, sh-utils, tar, xmlto, xz
  137. %if %{with_perf}
  138. BuildRequires: audit-libs-devel, binutils-devel, bison, elfutils-devel, libunwind-devel, newt-devel
  139. BuildRequires: numactl-devel, perl(ExtUtils::Embed), python-devel, slang-devel, xz-devel, zlib-devel
  140. %endif
  141. %if %{with_tools}
  142. BuildRequires: gettext, ncurses-devel, pciutils, pciutils-devel, zlib-devel
  143. %endif
  144.  
  145. # Sources.
  146. Source0: ftp://ftp.kernel.org/pub/linux/kernel/v4.x/linux-%{LKAver}.tar.xz
  147. #######################################
  148. #Source1: config-%{version}-i686
  149. #Source2: config-%{version}-i686-NONPAE
  150. #######################################
  151. Source3: config-%{version}-x86_64
  152. Source4: cpupower.service
  153. Source5: cpupower.config
  154.  
  155. Patch40000: replace.patch
  156.  
  157. # Do not package the source tarball.
  158. NoSource: 0
  159.  
  160. %description
  161. This package provides the Linux kernel (vmlinuz), the core of any
  162. Linux-based operating system. The kernel handles the basic functions
  163. of the OS: memory allocation, process allocation, device I/O, etc.
  164.  
  165. %package devel
  166. Summary: Development package for building kernel modules to match the kernel.
  167. Group: System Environment/Kernel
  168. Provides: kernel-devel = %{version}-%{release}
  169. Provides: kernel-devel-%{_target_cpu} = %{version}-%{release}
  170. Provides: kernel-devel-uname-r = %{version}-%{release}.%{_target_cpu}
  171. Provides: %{name}-devel = %{version}-%{release}
  172. Provides: %{name}-devel-%{_target_cpu} = %{version}-%{release}
  173. Provides: %{name}-devel-uname-r = %{version}-%{release}.%{_target_cpu}
  174. AutoReqProv: no
  175. Requires(pre): /usr/bin/find
  176. Requires: perl
  177. %description devel
  178. This package provides the kernel header files and makefiles
  179. sufficient to build modules against the kernel package.
  180.  
  181. %if %{with_doc}
  182. %package doc
  183. Summary: Various bits of documentation found in the kernel sources.
  184. Group: Documentation
  185. Provides: kernel-doc = %{version}-%{release}
  186. Provides: %{name}-doc = %{version}-%{release}
  187. Conflicts: kernel-doc < %{version}-%{release}
  188. %description doc
  189. This package provides documentation files from the kernel sources.
  190. Various bits of information about the Linux kernel and the device
  191. drivers shipped with it are documented in these files.
  192.  
  193. You'll want to install this package if you need a reference to the
  194. options that can be passed to the kernel modules at load time.
  195. %endif
  196.  
  197. %if %{with_headers}
  198. %package headers
  199. Summary: Header files of the kernel, for use by glibc.
  200. Group: Development/System
  201. Obsoletes: glibc-kernheaders < 3.0-46
  202. Provides: glibc-kernheaders = 3.0-46
  203. Provides: kernel-headers = %{version}-%{release}
  204. Provides: %{name}-headers = %{version}-%{release}
  205. Conflicts: kernel-headers < %{version}-%{release}
  206. %description headers
  207. This package provides the C header files that specify the interface
  208. between the Linux kernel and userspace libraries & programs. The
  209. header files define structures and constants that are needed when
  210. building most standard programs. They are also required when
  211. rebuilding the glibc package.
  212. %endif
  213.  
  214. %if %{with_perf}
  215. %package -n perf
  216. Summary: Performance monitoring of the kernel.
  217. Group: Development/System
  218. License: GPLv2
  219. %description -n perf
  220. This package provides the perf tool and the supporting documentation
  221. for performance monitoring of the Linux kernel.
  222.  
  223. %package -n python-perf
  224. Summary: Python bindings for applications that will manipulate perf events.
  225. Group: Development/Libraries
  226. %description -n python-perf
  227. This package provides a module that permits applications written in the
  228. Python programming language to use the interface to manipulate perf events.
  229.  
  230. %{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
  231. %endif
  232.  
  233. %if %{with_tools}
  234. %package -n %{name}-tools
  235. Summary: Assortment of tools for the kernel.
  236. Group: Development/System
  237. License: GPLv2
  238. Provides: cpupowerutils = 1:009-0.6.p1
  239. Obsoletes: cpupowerutils < 1:009-0.6.p1
  240. Provides: cpufreq-utils = 1:009-0.6.p1
  241. Obsoletes: cpufreq-utils < 1:009-0.6.p1
  242. Provides: cpufrequtils = 1:009-0.6.p1
  243. Obsoletes: cpufrequtils < 1:009-0.6.p1
  244. Obsoletes: cpuspeed < 1:2.0
  245. Requires: %{name}-tools-libs = %{version}-%{release}
  246. Conflicts: kernel-tools < %{version}-%{release}
  247. %description -n %{name}-tools
  248. This package contains the tools/ directory and its supporting
  249. documentation, derived from the kernel source.
  250.  
  251. %package -n %{name}-tools-libs
  252. Summary: Libraries for the kernel tools.
  253. Group: Development/System
  254. License: GPLv2
  255. Conflicts: kernel-tools-libs < %{version}-%{release}
  256. %description -n %{name}-tools-libs
  257. This package contains the libraries built from the
  258. tools/ directory, derived from the kernel source.
  259.  
  260. %package -n %{name}-tools-libs-devel
  261. Summary: Development package for the kernel tools libraries.
  262. Group: Development/System
  263. License: GPLv2
  264. Requires: %{name}-tools = %{version}-%{release}
  265. Requires: %{name}-tools-libs = %{version}-%{release}
  266. Provides: cpupowerutils-devel = 1:009-0.6.p1
  267. Obsoletes: cpupowerutils-devel < 1:009-0.6.p1
  268. Provides: %{name}-tools-devel
  269. Conflicts: kernel-tools-libs-devel < %{version}-%{release}
  270. %description -n %{name}-tools-libs-devel
  271. This package contains the development files for the tools/ directory
  272. libraries, derived from the kernel source.
  273. %endif
  274.  
  275. # Disable the building of the debug package(s).
  276. %define debug_package %{nil}
  277.  
  278. %prep
  279. %setup -q -n %{name}-%{version} -c
  280. %{__mv} linux-%{LKAver} linux-%{version}-%{release}.%{_target_cpu}
  281.  
  282. pushd linux-%{version}-%{release}.%{_target_cpu} > /dev/null
  283.  
  284. #####################
  285. #%{__cp} %{SOURCE1} .
  286. #%{__cp} %{SOURCE2} .
  287. #####################
  288. %{__cp} %{SOURCE3} .
  289.  
  290. %patch40000 -p1
  291.  
  292. # Run make listnewconfig over all the configuration files.
  293. %ifarch i686 || x86_64
  294. for C in config-*-%{_target_cpu}*
  295. do
  296. %{__cp} $C .config
  297. %{__make} -s ARCH=%{buildarch} listnewconfig | grep -E '^CONFIG_' > .newoptions || true
  298. if [ -s .newoptions ]; then
  299. cat .newoptions
  300. exit 1
  301. fi
  302. %{__rm} .newoptions
  303. done
  304. %endif
  305.  
  306. # Remove unnecessary files.
  307. /usr/bin/find . -type f \( -name .gitignore -o -name .mailmap \) | xargs --no-run-if-empty %{__rm} -f
  308.  
  309. popd > /dev/null
  310.  
  311. %build
  312. BuildKernel() {
  313. Flavour=$1
  314.  
  315. %{__make} -s distclean
  316.  
  317. # Select the correct flavour configuration file.
  318. if [ -z "${Flavour}" ]; then
  319. %{__cp} config-%{version}-%{_target_cpu} .config
  320. else
  321. %{__cp} config-%{version}-%{_target_cpu}-${Flavour} .config
  322. fi
  323.  
  324. %define KVRFA %{version}-%{release}${Flavour}.%{_target_cpu}
  325.  
  326. # Set the EXTRAVERSION string in the main Makefile.
  327. %{__perl} -p -i -e "s/^EXTRAVERSION.*/EXTRAVERSION = -%{release}${Flavour}.%{_target_cpu}/" Makefile
  328.  
  329. %{__make} -s ARCH=%{buildarch} %{?_smp_mflags} bzImage
  330. %{__make} -s ARCH=%{buildarch} %{?_smp_mflags} modules
  331.  
  332. # Install the results into the RPM_BUILD_ROOT directory.
  333. %{__mkdir_p} $RPM_BUILD_ROOT/boot
  334. %{__install} -m 644 .config $RPM_BUILD_ROOT/boot/config-%{KVRFA}
  335. %{__install} -m 644 System.map $RPM_BUILD_ROOT/boot/System.map-%{KVRFA}
  336.  
  337. # We estimate the size of the initramfs because rpm needs to take this size
  338. # into consideration when performing disk space calculations. (See bz #530778)
  339. dd if=/dev/zero of=$RPM_BUILD_ROOT/boot/initramfs-%{KVRFA}.img bs=1M count=20
  340.  
  341. %{__cp} arch/x86/boot/bzImage $RPM_BUILD_ROOT/boot/vmlinuz-%{KVRFA}
  342. %{__chmod} 755 $RPM_BUILD_ROOT/boot/vmlinuz-%{KVRFA}
  343.  
  344. %{__mkdir_p} $RPM_BUILD_ROOT/lib/modules/%{KVRFA}
  345. %{__mkdir_p} $RPM_BUILD_ROOT/lib/modules/%{KVRFA}/kernel
  346. # Override $(mod-fw) because we don't want it to install any firmware.
  347. # We'll get it from the linux-firmware package and we don't want conflicts.
  348. %{__make} -s ARCH=%{buildarch} INSTALL_MOD_PATH=$RPM_BUILD_ROOT KERNELRELEASE=%{KVRFA} modules_install mod-fw=
  349.  
  350. %ifarch %{vdso_arches}
  351. %{__make} -s ARCH=%{buildarch} INSTALL_MOD_PATH=$RPM_BUILD_ROOT KERNELRELEASE=%{KVRFA} vdso_install
  352. /usr/bin/find $RPM_BUILD_ROOT/lib/modules/%{KVRFA}/vdso -type f -name 'vdso*.so' | xargs --no-run-if-empty %{__strip}
  353. if grep '^CONFIG_XEN=y$' .config > /dev/null; then
  354. echo > ldconfig-%{name}.conf "\
  355. # This directive teaches ldconfig to search in nosegneg subdirectories
  356. # and cache the DSOs there with extra bit 1 set in their hwcap match
  357. # fields. In Xen guest kernels, the vDSO tells the dynamic linker to
  358. # search in nosegneg subdirectories and to match this extra hwcap bit
  359. # in the ld.so.cache file.
  360. hwcap 1 nosegneg"
  361. fi
  362. if [ ! -s ldconfig-%{name}.conf ]; then
  363. echo > ldconfig-%{name}.conf "\
  364. # Placeholder file, no vDSO hwcap entries used in this kernel."
  365. fi
  366. %{__install} -D -m 444 ldconfig-%{name}.conf $RPM_BUILD_ROOT/etc/ld.so.conf.d/%{name}-%{KVRFA}.conf
  367. %endif
  368.  
  369. # Save the headers/makefiles, etc, for building modules against.
  370. #
  371. # This looks scary but the end result is supposed to be:
  372. #
  373. # - all arch relevant include/ files
  374. # - all Makefile & Kconfig files
  375. # - all script/ files
  376. #
  377. %{__rm} -f $RPM_BUILD_ROOT/lib/modules/%{KVRFA}/build
  378. %{__rm} -f $RPM_BUILD_ROOT/lib/modules/%{KVRFA}/source
  379. %{__mkdir_p} $RPM_BUILD_ROOT/lib/modules/%{KVRFA}/build
  380. pushd $RPM_BUILD_ROOT/lib/modules/%{KVRFA} > /dev/null
  381. %{__ln_s} build source
  382. popd > /dev/null
  383. %{__mkdir_p} $RPM_BUILD_ROOT/lib/modules/%{KVRFA}/extra
  384. %{__mkdir_p} $RPM_BUILD_ROOT/lib/modules/%{KVRFA}/updates
  385. %{__mkdir_p} $RPM_BUILD_ROOT/lib/modules/%{KVRFA}/weak-updates
  386.  
  387. # First copy everything . . .
  388. %{__cp} --parents `/usr/bin/find -type f -name 'Makefile*' -o -name 'Kconfig*'` $RPM_BUILD_ROOT/lib/modules/%{KVRFA}/build
  389. %{__cp} Module.symvers $RPM_BUILD_ROOT/lib/modules/%{KVRFA}/build
  390. %{__cp} System.map $RPM_BUILD_ROOT/lib/modules/%{KVRFA}/build
  391. if [ -s Module.markers ]; then
  392. %{__cp} Module.markers $RPM_BUILD_ROOT/lib/modules/%{KVRFA}/build
  393. fi
  394.  
  395. %{__gzip} -c9 < Module.symvers > $RPM_BUILD_ROOT/boot/symvers-%{KVRFA}.gz
  396.  
  397. # . . . then drop all but the needed Makefiles & Kconfig files.
  398. %{__rm} -rf $RPM_BUILD_ROOT/lib/modules/%{KVRFA}/build/Documentation
  399. %{__rm} -rf $RPM_BUILD_ROOT/lib/modules/%{KVRFA}/build/scripts
  400. %{__rm} -rf $RPM_BUILD_ROOT/lib/modules/%{KVRFA}/build/include
  401. %{__cp} .config $RPM_BUILD_ROOT/lib/modules/%{KVRFA}/build
  402. %{__cp} -a scripts $RPM_BUILD_ROOT/lib/modules/%{KVRFA}/build
  403. if [ -d arch/%{buildarch}/scripts ]; then
  404. %{__cp} -a arch/%{buildarch}/scripts $RPM_BUILD_ROOT/lib/modules/%{KVRFA}/build/arch/%{_arch} || :
  405. fi
  406. if [ -f arch/%{buildarch}/*lds ]; then
  407. %{__cp} -a arch/%{buildarch}/*lds $RPM_BUILD_ROOT/lib/modules/%{KVRFA}/build/arch/%{_arch}/ || :
  408. fi
  409. %{__rm} -f $RPM_BUILD_ROOT/lib/modules/%{KVRFA}/build/scripts/*.o
  410. %{__rm} -f $RPM_BUILD_ROOT/lib/modules/%{KVRFA}/build/scripts/*/*.o
  411. if [ -d arch/%{asmarch}/include ]; then
  412. %{__cp} -a --parents arch/%{asmarch}/include $RPM_BUILD_ROOT/lib/modules/%{KVRFA}/build/
  413. fi
  414. if [ -d arch/%{asmarch}/syscalls ]; then
  415. %{__cp} -a --parents arch/%{asmarch}/syscalls $RPM_BUILD_ROOT/lib/modules/%{KVRFA}/build/
  416. fi
  417. %{__mkdir_p} $RPM_BUILD_ROOT/lib/modules/%{KVRFA}/build/include
  418. pushd include > /dev/null
  419. %{__cp} -a * $RPM_BUILD_ROOT/lib/modules/%{KVRFA}/build/include/
  420. popd > /dev/null
  421. %{__rm} -f $RPM_BUILD_ROOT/lib/modules/%{KVRFA}/build/include/Kbuild
  422. # Ensure a copy of the version.h file is in the include/linux/ directory.
  423. %{__cp} usr/include/linux/version.h $RPM_BUILD_ROOT/lib/modules/%{KVRFA}/build/include/linux/
  424. # Copy the generated autoconf.h file to the include/linux/ directory.
  425. %{__cp} include/generated/autoconf.h $RPM_BUILD_ROOT/lib/modules/%{KVRFA}/build/include/linux/
  426. # Copy .config to include/config/auto.conf so a "make prepare" is unnecessary.
  427. %{__cp} $RPM_BUILD_ROOT/lib/modules/%{KVRFA}/build/.config $RPM_BUILD_ROOT/lib/modules/%{KVRFA}/build/include/config/auto.conf
  428. # Now ensure that the Makefile, .config, auto.conf, autoconf.h and version.h files
  429. # all have matching timestamps so that external modules can be built.
  430. touch -r $RPM_BUILD_ROOT/lib/modules/%{KVRFA}/build/Makefile $RPM_BUILD_ROOT/lib/modules/%{KVRFA}/build/.config
  431. touch -r $RPM_BUILD_ROOT/lib/modules/%{KVRFA}/build/Makefile $RPM_BUILD_ROOT/lib/modules/%{KVRFA}/build/include/config/auto.conf
  432. touch -r $RPM_BUILD_ROOT/lib/modules/%{KVRFA}/build/Makefile $RPM_BUILD_ROOT/lib/modules/%{KVRFA}/build/include/linux/autoconf.h
  433. touch -r $RPM_BUILD_ROOT/lib/modules/%{KVRFA}/build/Makefile $RPM_BUILD_ROOT/lib/modules/%{KVRFA}/build/include/linux/version.h
  434. touch -r $RPM_BUILD_ROOT/lib/modules/%{KVRFA}/build/Makefile $RPM_BUILD_ROOT/lib/modules/%{KVRFA}/build/include/generated/autoconf.h
  435. touch -r $RPM_BUILD_ROOT/lib/modules/%{KVRFA}/build/Makefile $RPM_BUILD_ROOT/lib/modules/%{KVRFA}/build/include/generated/uapi/linux/version.h
  436.  
  437. # Remove any 'left-over' .cmd files.
  438. /usr/bin/find $RPM_BUILD_ROOT/lib/modules/%{KVRFA}/build -type f -name '*.cmd' | xargs --no-run-if-empty %{__rm} -f
  439.  
  440. /usr/bin/find $RPM_BUILD_ROOT/lib/modules/%{KVRFA} -type f -name '*.ko' > modnames
  441.  
  442. # Mark the modules executable, so that strip-to-file can strip them.
  443. xargs --no-run-if-empty %{__chmod} u+x < modnames
  444.  
  445. # Generate a list of modules for block and networking.
  446. grep -F /drivers/ modnames | xargs --no-run-if-empty nm -upA | sed -n 's,^.*/\([^/]*\.ko\): *U \(.*\)$,\1 \2,p' > drivers.undef
  447.  
  448. collect_modules_list()
  449. {
  450. sed -r -n -e "s/^([^ ]+) \\.?($2)\$/\\1/p" drivers.undef | LC_ALL=C sort -u > $RPM_BUILD_ROOT/lib/modules/%{KVRFA}/modules.$1
  451. if [ ! -z "$3" ]; then
  452. sed -r -e "/^($3)\$/d" -i $RPM_BUILD_ROOT/lib/modules/%{KVRFA}/modules.$1
  453. fi
  454. }
  455.  
  456. collect_modules_list networking \
  457. 'register_netdev|ieee80211_register_hw|usbnet_probe|phy_driver_register|rt2x00(pci|usb)_probe|register_netdevice'
  458.  
  459. collect_modules_list block \
  460. 'ata_scsi_ioctl|scsi_add_host|scsi_add_host_with_dma|blk_alloc_queue|blk_init_queue|register_mtd_blktrans|scsi_esp_register|scsi_register_device_handler|blk_queue_physical_block_size|pktcdvd.ko|dm-mod.ko'
  461.  
  462. collect_modules_list drm \
  463. 'drm_open|drm_init'
  464.  
  465. collect_modules_list modesetting \
  466. 'drm_crtc_init'
  467.  
  468. # Detect any missing or incorrect license tags.
  469. %{__rm} -f modinfo
  470.  
  471. while read i
  472. do
  473. echo -n "${i#$RPM_BUILD_ROOT/lib/modules/%{KVRFA}/} " >> modinfo
  474. %{_sbindir}/modinfo -l $i >> modinfo
  475. done < modnames
  476.  
  477. grep -E -v 'GPL( v2)?$|Dual BSD/GPL$|Dual MPL/GPL$|GPL and additional rights$' modinfo && exit 1
  478.  
  479. %{__rm} -f modinfo modnames
  480.  
  481. # Remove all the files that will be auto generated by depmod at the kernel install time.
  482. for i in alias alias.bin builtin.bin ccwmap dep dep.bin ieee1394map inputmap isapnpmap ofmap pcimap seriomap symbols symbols.bin usbmap
  483. do
  484. %{__rm} -f $RPM_BUILD_ROOT/lib/modules/%{KVRFA}/modules.$i
  485. done
  486.  
  487. # Move the development files out of the /lib/modules/ file system.
  488. %{__mkdir_p} $RPM_BUILD_ROOT/usr/src/kernels
  489. %{__mv} $RPM_BUILD_ROOT/lib/modules/%{KVRFA}/build $RPM_BUILD_ROOT/usr/src/kernels/%{KVRFA}
  490. %{__ln_s} -f /usr/src/kernels/%{KVRFA} $RPM_BUILD_ROOT/lib/modules/%{KVRFA}/build
  491. }
  492.  
  493. # Prepare the directories.
  494. %{__rm} -rf $RPM_BUILD_ROOT
  495. %{__mkdir_p} $RPM_BUILD_ROOT/boot
  496. %{__mkdir_p} $RPM_BUILD_ROOT%{_libexecdir}
  497.  
  498. pushd linux-%{version}-%{release}.%{_target_cpu} > /dev/null
  499.  
  500. %if %{with_default}
  501. BuildKernel
  502. %endif
  503.  
  504. %if %{with_doc}
  505. # Make the HTML and man pages.
  506. %{__make} -s %{?_smp_mflags} htmldocs 2> /dev/null
  507. %{__make} -s %{?_smp_mflags} mandocs 2> /dev/null
  508.  
  509. # Sometimes non-world-readable files sneak into the kernel source tree.
  510. %{__chmod} -R a=rX Documentation
  511. /usr/bin/find Documentation -type d | xargs %{__chmod} u+w
  512. %endif
  513.  
  514. %if %{with_perf}
  515. %global perf_make \
  516. %{__make} -s -C tools/perf %{?_smp_mflags} prefix=%{_prefix} WERROR=0 HAVE_CPLUS_DEMANGLE=1 NO_GTK2=1 NO_STRLCPY=1
  517.  
  518. %{perf_make} all
  519. %{perf_make} man
  520. %endif
  521.  
  522. %if %{with_tools}
  523. %ifarch x86_64
  524. # Make sure that version-gen.sh is executable.
  525. %{__chmod} +x tools/power/cpupower/utils/version-gen.sh
  526. pushd tools/power/cpupower > /dev/null
  527. %{__make} -s CPUFREQ_BENCH=false
  528. popd > /dev/null
  529. pushd tools/power/cpupower/debug/x86_64 > /dev/null
  530. %{__make} -s centrino-decode
  531. %{__make} -s powernow-k8-decode
  532. popd > /dev/null
  533. pushd tools/power/x86/x86_energy_perf_policy > /dev/null
  534. %{__make} -s
  535. popd > /dev/null
  536. pushd tools/power/x86/turbostat > /dev/null
  537. %{__make} -s
  538. popd > /dev/null
  539. %endif
  540. pushd tools/thermal/tmon > /dev/null
  541. %{__make} -s
  542. popd > /dev/null
  543. %endif
  544.  
  545. popd > /dev/null
  546.  
  547. %install
  548. pushd linux-%{version}-%{release}.%{_target_cpu} > /dev/null
  549.  
  550. %if %{with_headers}
  551. # We have to do the headers install before the tools install because the
  552. # kernel headers_install will remove any header files in /usr/include that
  553. # it doesn't install itself.
  554.  
  555. # Install kernel headers
  556. %{__make} -s ARCH=%{hdrarch} INSTALL_HDR_PATH=$RPM_BUILD_ROOT/usr headers_install
  557.  
  558. # Do headers_check but don't die if it fails.
  559. %{__make} -s ARCH=%{hdrarch} INSTALL_HDR_PATH=$RPM_BUILD_ROOT/usr headers_check > hdrwarnings.txt || :
  560. if grep -q exist hdrwarnings.txt; then
  561. sed s:^$RPM_BUILD_ROOT/usr/include/:: hdrwarnings.txt
  562. # Temporarily cause a build failure if header inconsistencies.
  563. # exit 1
  564. fi
  565.  
  566. # Remove the unrequired files.
  567. /usr/bin/find $RPM_BUILD_ROOT/usr/include -type f \
  568. \( -name .install -o -name .check -o -name ..install.cmd -o -name ..check.cmd \) | \
  569. xargs --no-run-if-empty %{__rm} -f
  570. %endif
  571.  
  572. %if %{with_doc}
  573. DOCDIR=$RPM_BUILD_ROOT%{_datadir}/doc/%{name}-doc-%{version}
  574. MAN9DIR=$RPM_BUILD_ROOT%{_datadir}/man/man9
  575.  
  576. # Copy the documentation over.
  577. %{__mkdir_p} $DOCDIR
  578. %{__tar} -f - --exclude=man --exclude='.*' -c Documentation | %{__tar} xf - -C $DOCDIR
  579.  
  580. # Install the man pages for the kernel API.
  581. %{__mkdir_p} $MAN9DIR
  582. /usr/bin/find Documentation/DocBook/man -type f -name '*.9.gz' -print0 \
  583. | xargs -0 --no-run-if-empty %{__cp} -u -t $MAN9DIR
  584. /usr/bin/find $MAN9DIR -type f -name '*.9.gz' -print0 \
  585. | xargs -0 --no-run-if-empty %{__chmod} 644
  586. ls $MAN9DIR | grep -q '' || > $MAN9DIR/BROKEN
  587. %endif
  588.  
  589. %if %{with_perf}
  590. # perf tool binary and supporting scripts/binaries.
  591. %{perf_make} DESTDIR=$RPM_BUILD_ROOT install
  592.  
  593. # perf-python extension.
  594. %{perf_make} DESTDIR=$RPM_BUILD_ROOT install-python_ext
  595.  
  596. # perf man pages. (Note: implicit rpm magic compresses them later.)
  597. %{perf_make} DESTDIR=$RPM_BUILD_ROOT install-man
  598. %endif
  599.  
  600. %if %{with_tools}
  601. %ifarch x86_64
  602. %{__make} -s -C tools/power/cpupower DESTDIR=$RPM_BUILD_ROOT libdir=%{_libdir} mandir=%{_mandir} CPUFREQ_BENCH=false install
  603. %{__rm} -f %{buildroot}%{_libdir}/*.{a,la}
  604. %find_lang cpupower
  605. mv cpupower.lang ../
  606. pushd tools/power/cpupower/debug/x86_64 > /dev/null
  607. %{__install} -m755 centrino-decode %{buildroot}%{_bindir}/centrino-decode
  608. %{__install} -m755 powernow-k8-decode %{buildroot}%{_bindir}/powernow-k8-decode
  609. popd > /dev/null
  610. %{__chmod} 0755 %{buildroot}%{_libdir}/libcpupower.so*
  611. %{__mkdir_p} %{buildroot}%{_unitdir}
  612. %{__install} -m644 %{SOURCE4} %{buildroot}%{_unitdir}/cpupower.service
  613. %{__mkdir_p} %{buildroot}%{_sysconfdir}/sysconfig
  614. %{__install} -m644 %{SOURCE5} %{buildroot}%{_sysconfdir}/sysconfig/cpupower
  615. %{__mkdir_p} %{buildroot}%{_mandir}/man8
  616. pushd tools/power/x86/x86_energy_perf_policy > /dev/null
  617. %{__make} -s DESTDIR=%{buildroot} install
  618. popd > /dev/null
  619. pushd tools/power/x86/turbostat > /dev/null
  620. %{__make} -s DESTDIR=%{buildroot} install
  621. popd > /dev/null
  622. /usr/bin/find %{buildroot}%{_mandir} -type f -print0 \
  623. | xargs -0 --no-run-if-empty %{__chmod} 644
  624. %endif
  625. pushd tools/thermal/tmon > /dev/null
  626. %{__install} -m755 tmon %{buildroot}%{_bindir}/tmon
  627. popd > /dev/null
  628. %endif
  629.  
  630. popd > /dev/null
  631.  
  632. %clean
  633. %{__rm} -rf $RPM_BUILD_ROOT
  634.  
  635. # Scripts section.
  636. %if %{with_default}
  637. %posttrans
  638. %{_sbindir}/new-kernel-pkg --package %{name} --mkinitrd --dracut --depmod --update %{version}-%{release}.%{_target_cpu} || exit $?
  639. %{_sbindir}/new-kernel-pkg --package %{name} --rpmposttrans %{version}-%{release}.%{_target_cpu} || exit $?
  640. if [ -x %{_sbindir}/weak-modules ]; then
  641. %{_sbindir}/weak-modules --add-kernel %{version}-%{release}.%{_target_cpu} || exit $?
  642. fi
  643.  
  644. %post
  645. %{_sbindir}/new-kernel-pkg --package %{name} --install %{version}-%{release}.%{_target_cpu} || exit $?
  646.  
  647. %preun
  648. %{_sbindir}/new-kernel-pkg --rminitrd --rmmoddep --remove %{version}-%{release}.%{_target_cpu} || exit $?
  649. if [ -x %{_sbindir}/weak-modules ]; then
  650. %{_sbindir}/weak-modules --remove-kernel %{version}-%{release}.%{_target_cpu} || exit $?
  651. fi
  652.  
  653. %post devel
  654. if [ -f /etc/sysconfig/kernel ]; then
  655. . /etc/sysconfig/kernel || exit $?
  656. fi
  657. if [ "$HARDLINK" != "no" -a -x /usr/sbin/hardlink ]; then
  658. pushd /usr/src/kernels/%{version}-%{release}.%{_target_cpu} > /dev/null
  659. /usr/bin/find . -type f | while read f; do
  660. /usr/sbin/hardlink -c /usr/src/kernels/*.fc*.*/$f $f
  661. done
  662. popd > /dev/null
  663. fi
  664. %endif
  665.  
  666. %if %{with_tools}
  667. %post -n %{name}-tools
  668. %{_sbindir}/ldconfig || exit $?
  669.  
  670. %postun -n %{name}-tools
  671. %{_sbindir}/ldconfig || exit $?
  672. %endif
  673.  
  674. # Files section.
  675. %if %{with_default}
  676. %files
  677. %defattr(-,root,root)
  678. /boot/vmlinuz-%{version}-%{release}.%{_target_cpu}
  679. %attr(600,root,root) /boot/System.map-%{version}-%{release}.%{_target_cpu}
  680. /boot/symvers-%{version}-%{release}.%{_target_cpu}.gz
  681. /boot/config-%{version}-%{release}.%{_target_cpu}
  682. %dir /lib/modules/%{version}-%{release}.%{_target_cpu}
  683. /lib/modules/%{version}-%{release}.%{_target_cpu}/kernel
  684. /lib/modules/%{version}-%{release}.%{_target_cpu}/build
  685. /lib/modules/%{version}-%{release}.%{_target_cpu}/source
  686. /lib/modules/%{version}-%{release}.%{_target_cpu}/extra
  687. /lib/modules/%{version}-%{release}.%{_target_cpu}/updates
  688. /lib/modules/%{version}-%{release}.%{_target_cpu}/weak-updates
  689. %ifarch %{vdso_arches}
  690. /lib/modules/%{version}-%{release}.%{_target_cpu}/vdso
  691. /etc/ld.so.conf.d/%{name}-%{version}-%{release}.%{_target_cpu}.conf
  692. %endif
  693. /lib/modules/%{version}-%{release}.%{_target_cpu}/modules.*
  694. %ghost /boot/initramfs-%{version}-%{release}.%{_target_cpu}.img
  695.  
  696. %files devel
  697. %defattr(-,root,root)
  698. %dir /usr/src/kernels
  699. /usr/src/kernels/%{version}-%{release}.%{_target_cpu}
  700. %endif
  701.  
  702. %if %{with_headers}
  703. %files headers
  704. %defattr(-,root,root)
  705. %{_includedir}/*
  706. %endif
  707.  
  708. %if %{with_doc}
  709. %files doc
  710. %defattr(-,root,root)
  711. %{_datadir}/doc/%{name}-doc-%{version}/Documentation/*
  712. %dir %{_datadir}/doc/%{name}-doc-%{version}/Documentation
  713. %dir %{_datadir}/doc/%{name}-doc-%{version}
  714. %{_datadir}/man/man9/*
  715. %endif
  716.  
  717. %if %{with_perf}
  718. %files -n perf
  719. %defattr(-,root,root)
  720. %{_bindir}/perf
  721. %{_bindir}/trace
  722. %dir %{_libdir}/traceevent/plugins
  723. %{_libdir}/traceevent/plugins/*
  724. %dir %{_libexecdir}/perf-core
  725. %{_libexecdir}/perf-core/*
  726. %{_mandir}/man[1-8]/perf*
  727. %dir %{_datadir}/perf-core
  728. %{_datadir}/perf-core/*
  729. %{_sysconfdir}/bash_completion.d/perf
  730.  
  731. %files -n python-perf
  732. %defattr(-,root,root)
  733. %{python_sitearch}
  734. %endif
  735.  
  736. %if %{with_tools}
  737. %files -n %{name}-tools -f cpupower.lang
  738. %defattr(-,root,root)
  739.  
  740. %ifarch x86_64
  741. %{_bindir}/cpupower
  742. %{_bindir}/centrino-decode
  743. %{_bindir}/powernow-k8-decode
  744. %{_bindir}/x86_energy_perf_policy
  745. %{_bindir}/turbostat
  746. %{_bindir}/tmon
  747. %config(noreplace) %{_sysconfdir}/sysconfig/cpupower
  748. %{_unitdir}/cpupower.service
  749. %{_mandir}/man[1-8]/cpupower*
  750. %{_mandir}/man8/x86_energy_perf_policy*
  751. %{_mandir}/man8/turbostat*
  752.  
  753. %files -n %{name}-tools-libs
  754. %defattr(-,root,root)
  755. %{_libdir}/libcpupower.so.0
  756. %{_libdir}/libcpupower.so.0.0.0
  757.  
  758. %files -n %{name}-tools-libs-devel
  759. %defattr(-,root,root)
  760. %{_libdir}/libcpupower.so
  761. %{_includedir}/cpufreq.h
  762. %endif
  763. %endif
  764.  
  765. %changelog
  766. * Thu May 19 2016 Alan Bartlett <ajb@elrepo.org> - 4.4.11-1
  767. - Updated with the 4.4.11 source tarball.
  768. - [https://www.kernel.org/pub/linux/kernel/v4.x/ChangeLog-4.4.11]
  769.  
  770. * Thu May 12 2016 Alan Bartlett <ajb@elrepo.org> - 4.4.10-1
  771. - Updated with the 4.4.10 source tarball.
  772. - [https://www.kernel.org/pub/linux/kernel/v4.x/ChangeLog-4.4.10]
  773.  
  774. * Thu May 05 2016 Alan Bartlett <ajb@elrepo.org> - 4.4.9-1
  775. - Updated with the 4.4.9 source tarball.
  776. - [https://www.kernel.org/pub/linux/kernel/v4.x/ChangeLog-4.4.9]
  777.  
  778. * Wed Apr 20 2016 Alan Bartlett <ajb@elrepo.org> - 4.4.8-1
  779. - Updated with the 4.4.8 source tarball.
  780. - [https://www.kernel.org/pub/linux/kernel/v4.x/ChangeLog-4.4.8]
  781.  
  782. * Sat Apr 16 2016 Alan Bartlett <ajb@elrepo.org> - 4.4.7-1
  783. - Updated with the 4.4.7 source tarball.
  784. - [https://www.kernel.org/pub/linux/kernel/v4.x/ChangeLog-4.4.7]
  785.  
  786. * Mon Mar 21 2016 Alan Bartlett <ajb@elrepo.org> - 4.4.6-1
  787. - Updated with the 4.4.6 source tarball.
  788. - [https://www.kernel.org/pub/linux/kernel/v4.x/ChangeLog-4.4.6]
  789. - Revised this specification file so as to create
  790. - a kernel-lt package set for EL7.
  791.  
  792. * Thu Mar 10 2016 Alan Bartlett <ajb@elrepo.org> - 4.4.5-1
  793. - Updated with the 4.4.5 source tarball.
  794. - [https://www.kernel.org/pub/linux/kernel/v4.x/ChangeLog-4.4.5]
  795.  
  796. * Fri Mar 04 2016 Alan Bartlett <ajb@elrepo.org> - 4.4.4-1
  797. - Updated with the 4.4.4 source tarball.
  798. - [https://www.kernel.org/pub/linux/kernel/v4.x/ChangeLog-4.4.4]
  799.  
  800. * Thu Feb 25 2016 Alan Bartlett <ajb@elrepo.org> - 4.4.3-1
  801. - Updated with the 4.4.3 source tarball.
  802. - [https://www.kernel.org/pub/linux/kernel/v4.x/ChangeLog-4.4.3]
  803.  
  804. * Thu Feb 18 2016 Alan Bartlett <ajb@elrepo.org> - 4.4.2-1
  805. - Updated with the 4.4.2 source tarball.
  806. - [https://www.kernel.org/pub/linux/kernel/v4.x/ChangeLog-4.4.2]
  807.  
  808. * Sun Jan 31 2016 Alan Bartlett <ajb@elrepo.org> - 4.4.1-1
  809. - Updated with the 4.4.1 source tarball.
  810. - [https://www.kernel.org/pub/linux/kernel/v4.x/ChangeLog-4.4.1]
  811.  
  812. * Tue Jan 26 2016 Alan Bartlett <ajb@elrepo.org> - 4.4.0-2
  813. - CONFIG_SCSI_MPT2SAS=m [http://elrepo.org/bugs/view.php?id=628]
  814.  
  815. * Mon Jan 11 2016 Alan Bartlett <ajb@elrepo.org> - 4.4.0-1
  816. - Updated with the 4.4 source tarball.
  817.  
  818. * Tue Dec 15 2015 Alan Bartlett <ajb@elrepo.org> - 4.3.3-1
  819. - Updated with the 4.3.3 source tarball.
  820. - [https://www.kernel.org/pub/linux/kernel/v4.x/ChangeLog-4.3.3]
  821.  
  822. * Thu Dec 10 2015 Alan Bartlett <ajb@elrepo.org> - 4.3.2-1
  823. - Updated with the 4.3.2 source tarball.
  824. - [https://www.kernel.org/pub/linux/kernel/v4.x/ChangeLog-4.3.2]
  825.  
  826. * Thu Dec 10 2015 Alan Bartlett <ajb@elrepo.org> - 4.3.1-1
  827. - Updated with the 4.3.1 source tarball.
  828. - [https://www.kernel.org/pub/linux/kernel/v4.x/ChangeLog-4.3.1]
  829. - CONFIG_VXFS_FS=m [http://elrepo.org/bugs/view.php?id=606]
  830.  
  831. * Mon Nov 02 2015 Alan Bartlett <ajb@elrepo.org> - 4.3.0-1
  832. - Updated with the 4.3 source tarball.
  833.  
  834. * Tue Oct 27 2015 Alan Bartlett <ajb@elrepo.org> - 4.2.5-1
  835. - Updated with the 4.2.5 source tarball.
  836. - [https://www.kernel.org/pub/linux/kernel/v4.x/ChangeLog-4.2.5]
  837. - CONFIG_SCHEDSTATS=y [https://elrepo.org/bugs/view.php?id=603]
  838.  
  839. * Fri Oct 23 2015 Alan Bartlett <ajb@elrepo.org> - 4.2.4-1
  840. - Updated with the 4.2.4 source tarball.
  841. - [https://www.kernel.org/pub/linux/kernel/v4.x/ChangeLog-4.2.4]
  842.  
  843. * Sat Oct 03 2015 Alan Bartlett <ajb@elrepo.org> - 4.2.3-1
  844. - Updated with the 4.2.3 source tarball.
  845. - [https://www.kernel.org/pub/linux/kernel/v4.x/ChangeLog-4.2.3]
  846.  
  847. * Wed Sep 30 2015 Alan Bartlett <ajb@elrepo.org> - 4.2.2-1
  848. - Updated with the 4.2.2 source tarball.
  849. - [https://www.kernel.org/pub/linux/kernel/v4.x/ChangeLog-4.2.2]
  850.  
  851. * Mon Sep 21 2015 Alan Bartlett <ajb@elrepo.org> - 4.2.1-1
  852. - Updated with the 4.2.1 source tarball.
  853. - [https://www.kernel.org/pub/linux/kernel/v4.x/ChangeLog-4.2.1]
  854. - CONFIG_BACKLIGHT_GPIO=m, CONFIG_BCMA_DRIVER_GPIO=y, CONFIG_CHARGER_GPIO=m,
  855. - CONFIG_CHARGER_MANAGER=y, CONFIG_CLKDEV_LOOKUP=y, CONFIG_COMMON_CLK=y,
  856. - CONFIG_EXTCON=y, CONFIG_GENERIC_IRQ_CHIP=y, CONFIG_GPIO_ACPI=y,
  857. - CONFIG_GPIO_ADP5588=m, CONFIG_GPIO_AMD8111=m, CONFIG_GPIO_DEVRES=y,
  858. - CONFIG_GPIO_DWAPB=m, CONFIG_GPIO_F7188X=m, CONFIG_GPIO_GENERIC=m,
  859. - CONFIG_GPIO_GENERIC_PLATFORM=m, CONFIG_GPIO_ICH=m, CONFIG_GPIO_INTEL_MID=y,
  860. - CONFIG_GPIO_IT8761E=m, CONFIG_GPIO_JANZ_TTL=m, CONFIG_GPIO_KEMPLD=m,
  861. - CONFIG_GPIOLIB_IRQCHIP=y, CONFIG_GPIOLIB=y, CONFIG_GPIO_LP3943=m,
  862. - CONFIG_GPIO_LYNXPOINT=m, CONFIG_GPIO_MAX7300=m, CONFIG_GPIO_MAX7301=m,
  863. - CONFIG_GPIO_MAX730X=m, CONFIG_GPIO_MAX732X=m, CONFIG_GPIO_MC33880=m,
  864. - CONFIG_GPIO_MCP23S08=m, CONFIG_GPIO_ML_IOH=m, CONFIG_GPIO_PCA953X=m,
  865. - CONFIG_GPIO_PCF857X=m, CONFIG_GPIO_RDC321X=m, CONFIG_GPIO_SCH311X=m,
  866. - CONFIG_GPIO_SCH=m, CONFIG_GPIO_SX150X=y, CONFIG_GPIO_SYSFS=y,
  867. - CONFIG_GPIO_VX855=m, CONFIG_HAVE_CLK_PREPARE=y, CONFIG_HAVE_CLK=y,
  868. - CONFIG_I2C_CBUS_GPIO=m, CONFIG_I2C_DESIGNWARE_PLATFORM=m, CONFIG_I2C_GPIO=m,
  869. - CONFIG_I2C_MUX_GPIO=m, CONFIG_I2C_MUX_PCA954x=m, CONFIG_I2C_MUX_PINCTRL=m,
  870. - CONFIG_LEDS_GPIO=m, CONFIG_LEDS_PCA9532_GPIO=y, CONFIG_LEDS_TRIGGER_GPIO=m,
  871. - CONFIG_MDIO_GPIO=m, CONFIG_MFD_INTEL_QUARK_I2C_GPIO=m, CONFIG_MFD_SM501_GPIO=y,
  872. - CONFIG_PINCTRL_BAYTRAIL=y, CONFIG_PINCTRL=y, CONFIG_PM_CLK=y,
  873. - CONFIG_REGULATOR_GPIO=m, CONFIG_SENSORS_GPIO_FAN=m, CONFIG_SENSORS_SHT15=m,
  874. - CONFIG_SND_COMPRESS_OFFLOAD=m, CONFIG_SND_DESIGNWARE_I2S=m,
  875. - CONFIG_SND_DMAENGINE_PCM=m, CONFIG_SND_SOC_GENERIC_DMAENGINE_PCM=y,
  876. - CONFIG_SND_SOC_I2C_AND_SPI=m, CONFIG_SND_SOC=m, CONFIG_SPI_GPIO=m,
  877. - CONFIG_SPI_PXA2XX_DMA=y, CONFIG_SPI_PXA2XX=m, CONFIG_SPI_PXA2XX_PCI=m,
  878. - CONFIG_SSB_DRIVER_GPIO=y, CONFIG_USB_DWC3_DUAL_ROLE=y, CONFIG_USB_F_MASS_STORAGE=m,
  879. - CONFIG_USB_GADGET=m, CONFIG_USB_GADGET_STORAGE_NUM_BUFFERS=2,
  880. - CONFIG_USB_GADGET_VBUS_DRAW=2, CONFIG_USB_LIBCOMPOSITE=m,
  881. - CONFIG_USB_MASS_STORAGE=m and CONFIG_X86_INTEL_LPSS=y
  882. - [https://elrepo.org/bugs/view.php?id=592]
  883.  
  884. * Mon Aug 31 2015 Alan Bartlett <ajb@elrepo.org> - 4.2.0-1
  885. - Updated with the 4.2 source tarball.
  886.  
  887. * Mon Aug 17 2015 Alan Bartlett <ajb@elrepo.org> - 4.1.6-1
  888. - Updated with the 4.1.6 source tarball.
  889. - [https://www.kernel.org/pub/linux/kernel/v4.x/ChangeLog-4.1.6]
  890.  
  891. * Tue Aug 11 2015 Alan Bartlett <ajb@elrepo.org> - 4.1.5-1
  892. - Updated with the 4.1.5 source tarball.
  893. - [https://www.kernel.org/pub/linux/kernel/v4.x/ChangeLog-4.1.5]
  894.  
  895. * Wed Aug 05 2015 Alan Bartlett <ajb@elrepo.org> - 4.1.4-1
  896. - Updated with the 4.1.4 source tarball.
  897. - [https://www.kernel.org/pub/linux/kernel/v4.x/ChangeLog-4.1.4]
  898.  
  899. * Wed Jul 22 2015 Alan Bartlett <ajb@elrepo.org> - 4.1.3-1
  900. - Updated with the 4.1.3 source tarball.
  901. - [https://www.kernel.org/pub/linux/kernel/v4.x/ChangeLog-4.1.3]
  902.  
  903. * Sat Jul 11 2015 Alan Bartlett <ajb@elrepo.org> - 4.1.2-1
  904. - Updated with the 4.1.2 source tarball.
  905. - [https://www.kernel.org/pub/linux/kernel/v4.x/ChangeLog-4.1.2]
  906.  
  907. * Mon Jun 29 2015 Alan Bartlett <ajb@elrepo.org> - 4.1.1-1
  908. - Updated with the 4.1.1 source tarball.
  909. - [https://www.kernel.org/pub/linux/kernel/v4.x/ChangeLog-4.1.1]
  910. - CONFIG_BLK_DEV_DRBD=m [https://elrepo.org/bugs/view.php?id=575]
  911.  
  912. * Mon Jun 22 2015 Alan Bartlett <ajb@elrepo.org> - 4.1.0-1
  913. - Updated with the 4.1 source tarball.
  914. - CONFIG_BRIDGE_NETFILTER=y [https://elrepo.org/bugs/view.php?id=573]
  915.  
  916. * Sun Jun 07 2015 Alan Bartlett <ajb@elrepo.org> - 4.0.5-1
  917. - Updated with the 4.0.5 source tarball.
  918. - [https://www.kernel.org/pub/linux/kernel/v4.x/ChangeLog-4.0.5]
  919.  
  920. * Sun May 17 2015 Alan Bartlett <ajb@elrepo.org> - 4.0.4-1
  921. - Updated with the 4.0.4 source tarball.
  922. - [https://www.kernel.org/pub/linux/kernel/v4.x/ChangeLog-4.0.4]
  923.  
  924. * Wed May 13 2015 Alan Bartlett <ajb@elrepo.org> - 4.0.3-1
  925. - Updated with the 4.0.3 source tarball.
  926. - [https://www.kernel.org/pub/linux/kernel/v4.x/ChangeLog-4.0.3]
  927.  
  928. * Thu May 07 2015 Alan Bartlett <ajb@elrepo.org> - 4.0.2-1
  929. - Updated with the 4.0.2 source tarball.
  930. - [https://www.kernel.org/pub/linux/kernel/v4.x/ChangeLog-4.0.2]
  931.  
  932. * Thu Apr 30 2015 Alan Bartlett <ajb@elrepo.org> - 4.0.1-1
  933. - Updated with the 4.0.1 source tarball.
  934. - [https://www.kernel.org/pub/linux/kernel/v4.x/ChangeLog-4.0.1]
  935.  
  936. * Mon Apr 13 2015 Alan Bartlett <ajb@elrepo.org> - 4.0.0-1
  937. - Updated with the 4.0 source tarball.
  938.  
  939. * Thu Mar 26 2015 Alan Bartlett <ajb@elrepo.org> - 3.19.3-1
  940. - Updated with the 3.19.3 source tarball.
  941. - [https://www.kernel.org/pub/linux/kernel/v3.x/ChangeLog-3.19.3]
  942.  
  943. * Wed Mar 18 2015 Alan Bartlett <ajb@elrepo.org> - 3.19.2-1
  944. - Updated with the 3.19.2 source tarball.
  945. - [https://www.kernel.org/pub/linux/kernel/v3.x/ChangeLog-3.19.2]
  946.  
  947. * Sat Mar 07 2015 Alan Bartlett <ajb@elrepo.org> - 3.19.1-1
  948. - Updated with the 3.19.1 source tarball.
  949. - [https://www.kernel.org/pub/linux/kernel/v3.x/ChangeLog-3.19.1]
  950.  
  951. * Mon Feb 09 2015 Alan Bartlett <ajb@elrepo.org> - 3.19.0-1
  952. - Updated with the 3.19 source tarball.
  953.  
  954. * Fri Feb 06 2015 Alan Bartlett <ajb@elrepo.org> - 3.18.6-1
  955. - Updated with the 3.18.6 source tarball.
  956. - [https://www.kernel.org/pub/linux/kernel/v3.x/ChangeLog-3.18.6]
  957.  
  958. * Fri Jan 30 2015 Alan Bartlett <ajb@elrepo.org> - 3.18.5-1
  959. - Updated with the 3.18.5 source tarball.
  960. - [https://www.kernel.org/pub/linux/kernel/v3.x/ChangeLog-3.18.5]
  961.  
  962. * Wed Jan 28 2015 Alan Bartlett <ajb@elrepo.org> - 3.18.4-1
  963. - Updated with the 3.18.4 source tarball.
  964. - [https://www.kernel.org/pub/linux/kernel/v3.x/ChangeLog-3.18.4]
  965. - CONFIG_THUNDERBOLT=m [http://lists.elrepo.org/pipermail/elrepo/2015-January/002516.html]
  966. - CONFIG_OVERLAY_FS=m [https://elrepo.org/bugs/view.php?id=548]
  967.  
  968. * Fri Jan 16 2015 Alan Bartlett <ajb@elrepo.org> - 3.18.3-1
  969. - Updated with the 3.18.3 source tarball.
  970. - [https://www.kernel.org/pub/linux/kernel/v3.x/ChangeLog-3.18.3]
  971.  
  972. * Fri Jan 09 2015 Alan Bartlett <ajb@elrepo.org> - 3.18.2-1
  973. - Updated with the 3.18.2 source tarball.
  974. - [https://www.kernel.org/pub/linux/kernel/v3.x/ChangeLog-3.18.2]
  975.  
  976. * Tue Dec 16 2014 Alan Bartlett <ajb@elrepo.org> - 3.18.1-1
  977. - Updated with the 3.18.1 source tarball.
  978. - [https://www.kernel.org/pub/linux/kernel/v3.x/ChangeLog-3.18.1]
  979.  
  980. * Mon Dec 08 2014 Alan Bartlett <ajb@elrepo.org> - 3.18.0-1
  981. - Updated with the 3.18 source tarball.
  982.  
  983. * Mon Dec 08 2014 Alan Bartlett <ajb@elrepo.org> - 3.17.6-1
  984. - Updated with the 3.17.6 source tarball.
  985. - [https://www.kernel.org/pub/linux/kernel/v3.x/ChangeLog-3.17.6]
  986.  
  987. * Sun Dec 07 2014 Alan Bartlett <ajb@elrepo.org> - 3.17.5-1
  988. - Updated with the 3.17.5 source tarball.
  989. - [https://www.kernel.org/pub/linux/kernel/v3.x/ChangeLog-3.17.5]
  990.  
  991. * Sun Nov 30 2014 Alan Bartlett <ajb@elrepo,org> - 3.17.4-2
  992. - CONFIG_BLK_DEV_NBD=m [https://elrepo.org/bugs/view.php?id=538]
  993.  
  994. * Sat Nov 22 2014 Alan Bartlett <ajb@elrepo.org> - 3.17.4-1
  995. - Updated with the 3.17.4 source tarball.
  996. - [https://www.kernel.org/pub/linux/kernel/v3.x/ChangeLog-3.17.4]
  997. - CONFIG_CHROME_PLATFORMS=y, CONFIG_CHROMEOS_LAPTOP=m and
  998. - CONFIG_CHROMEOS_PSTORE=m [https://elrepo.org/bugs/view.php?id=532]
  999.  
  1000. * Sat Nov 15 2014 Alan Bartlett <ajb@elrepo.org> - 3.17.3-1
  1001. - Updated with the 3.17.3 source tarball.
  1002. - [https://www.kernel.org/pub/linux/kernel/v3.x/ChangeLog-3.17.3]
  1003. - CONFIG_BLK_DEV_RBD=m [https://elrepo.org/bugs/view.php?id=521]
  1004.  
  1005. * Fri Oct 31 2014 Alan Bartlett <ajb@elrepo.org> - 3.17.2-1
  1006. - Updated with the 3.17.2 source tarball.
  1007. - [https://www.kernel.org/pub/linux/kernel/v3.x/ChangeLog-3.17.2]
  1008.  
  1009. * Wed Oct 15 2014 Alan Bartlett <ajb@elrepo.org> - 3.17.1-1
  1010. - Updated with the 3.17.1 source tarball.
  1011. - [https://www.kernel.org/pub/linux/kernel/v3.x/ChangeLog-3.17.1]
  1012.  
  1013. * Mon Oct 06 2014 Alan Bartlett <ajb@elrepo.org> - 3.17.0-1
  1014. - Updated with the 3.17 source tarball.
  1015. - CONFIG_9P_FS=m, CONFIG_9P_FSCACHE=y and CONFIG_9P_FS_POSIX_ACL=y
  1016. - [https://elrepo.org/bugs/view.php?id=510]
  1017.  
  1018. * Thu Sep 18 2014 Alan Bartlett <ajb@elrepo.org> - 3.16.3-1
  1019. - Updated with the 3.16.3 source tarball.
  1020. - [https://www.kernel.org/pub/linux/kernel/v3.x/ChangeLog-3.16.3]
  1021.  
  1022. * Sat Sep 06 2014 Alan Bartlett <ajb@elrepo.org> - 3.16.2-1
  1023. - Updated with the 3.16.2 source tarball.
  1024. - [https://www.kernel.org/pub/linux/kernel/v3.x/ChangeLog-3.16.2]
  1025.  
  1026. * Thu Aug 14 2014 Alan Bartlett <ajb@elrepo.org> - 3.16.1-1
  1027. - Updated with the 3.16.1 source tarball.
  1028. - [https://www.kernel.org/pub/linux/kernel/v3.x/ChangeLog-3.16.1]
  1029. - CONFIG_ATH9K_DEBUGFS=y, CONFIG_ATH9K_HTC_DEBUGFS=y &
  1030. - CONFIG_ATH10K_DEBUGFS=y [https://elrepo.org/bugs/view.php?id=501]
  1031.  
  1032. * Mon Aug 04 2014 Alan Bartlett <ajb@elrepo.org> - 3.16.0-1
  1033. - Updated with the 3.16 source tarball.
  1034. - CONFIG_XEN_PCIDEV_BACKEND=y & CONFIG_XEN_FBDEV_FRONTEND=m [Mark Pryor]
  1035.  
  1036. * Fri Aug 01 2014 Alan Bartlett <ajb@elrepo.org> - 3.15.8-1
  1037. - Updated with the 3.15.8 source tarball.
  1038. - [https://www.kernel.org/pub/linux/kernel/v3.x/ChangeLog-3.15.8]
  1039.  
  1040. * Mon Jul 28 2014 Alan Bartlett <ajb@elrepo.org> - 3.15.7-1
  1041. - Updated with the 3.15.7 source tarball.
  1042. - [https://www.kernel.org/pub/linux/kernel/v3.x/ChangeLog-3.15.7]
  1043.  
  1044. * Fri Jul 18 2014 Alan Bartlett <ajb@elrepo.org> - 3.15.6-1
  1045. - Updated with the 3.15.6 source tarball.
  1046. - [https://www.kernel.org/pub/linux/kernel/v3.x/ChangeLog-3.15.6]
  1047.  
  1048. * Thu Jul 10 2014 Alan Bartlett <ajb@elrepo.org> - 3.15.5-1
  1049. - Updated with the 3.15.5 source tarball.
  1050. - [https://www.kernel.org/pub/linux/kernel/v3.x/ChangeLog-3.15.5]
  1051.  
  1052. * Mon Jul 07 2014 Alan Bartlett <ajb@elrepo.org> - 3.15.4-1
  1053. - Updated with the 3.15.4 source tarball.
  1054. - [https://www.kernel.org/pub/linux/kernel/v3.x/ChangeLog-3.15.4]
  1055.  
  1056. * Tue Jul 01 2014 Alan Bartlett <ajb@elrepo.org> - 3.15.3-1
  1057. - Updated with the 3.15.3 source tarball.
  1058. - [https://www.kernel.org/pub/linux/kernel/v3.x/ChangeLog-3.15.3]
  1059.  
  1060. * Fri Jun 27 2014 Alan Bartlett <ajb@elrepo.org> - 3.15.2-1
  1061. - Updated with the 3.15.2 source tarball.
  1062. - [https://www.kernel.org/pub/linux/kernel/v3.x/ChangeLog-3.15.2]
  1063.  
  1064. * Tue Jun 17 2014 Alan Bartlett <ajb@elrepo.org> - 3.15.1-1
  1065. - Updated with the 3.15.1 source tarball.
  1066. - [https://www.kernel.org/pub/linux/kernel/v3.x/ChangeLog-3.15.1]
  1067.  
  1068. * Thu Jun 12 2014 Alan Bartlett <ajb@elrepo.org> - 3.15.0-1
  1069. - General availability.
  1070.  
  1071. * Sun Jun 08 2014 Alan Bartlett <ajb@elrepo.org> - 3.15.0-0.rc8
  1072. - Updated with the 3.15 source tarball.
  1073. - The eighth release candidate of a kernel-ml package set for EL7.
  1074.  
  1075. * Sun Jun 08 2014 Alan Bartlett <ajb@elrepo.org> - 3.14.6-0.rc7
  1076. - Updated with the 3.14.6 source tarball.
  1077. - [https://www.kernel.org/pub/linux/kernel/v3.x/ChangeLog-3.14.6]
  1078. - The seventh release candidate of a kernel-ml package set for EL7.
  1079.  
  1080. * Wed Jun 04 2014 Alan Bartlett <ajb@elrepo.org> - 3.14.5-0.rc6
  1081. - [https://www.kernel.org/pub/linux/kernel/v3.x/ChangeLog-3.14.5]
  1082. - The sixth release candidate of a kernel-ml package set for EL7.
  1083. - Added a "Conflicts:" line for the kernel-ml-doc package.
  1084.  
  1085. * Mon Jun 02 2014 Alan Bartlett <ajb@elrepo.org> - 3.14.5-0.rc5
  1086. - [https://www.kernel.org/pub/linux/kernel/v3.x/ChangeLog-3.14.5]
  1087. - The fifth release candidate of a kernel-ml package set for EL7.
  1088. - CONFIG_SECURITY_TOMOYO_ACTIVATION_TRIGGER="/usr/lib/systemd/systemd"
  1089. - Corrected the "Conflicts:" line for the kernel-ml-tools-libs-devel
  1090. - package. [Akemi Yagi]
  1091.  
  1092. * Sun Jun 01 2014 Alan Bartlett <ajb@elrepo.org> - 3.14.5-0.rc4
  1093. - Updated with the 3.14.5 source tarball.
  1094. - [https://www.kernel.org/pub/linux/kernel/v3.x/ChangeLog-3.14.5]
  1095. - The fourth release candidate of a kernel-ml package set for EL7.
  1096. - Added a "Conflicts:" line for the kernel-ml-tools,
  1097. - kernel-ml-tools-libs & kernel-ml-tools-devel packages.
  1098.  
  1099. * Wed May 28 2014 Alan Bartlett <ajb@elrepo.org> - 3.14.4-0.rc3
  1100. - [https://www.kernel.org/pub/linux/kernel/v3.x/ChangeLog-3.14.4]
  1101. - The third release candidate of a kernel-ml package set for EL7.
  1102. - Fix a problem with the symlink between the /usr/src/$(uname -r)/
  1103. - directory and the /lib/modules/$(uname -r)/build directory.
  1104.  
  1105. * Sat May 24 2014 Alan Bartlett <ajb@elrepo.org> - 3.14.4-0.rc2
  1106. - [https://www.kernel.org/pub/linux/kernel/v3.x/ChangeLog-3.14.4]
  1107. - The second release candidate of a kernel-ml package set for EL7.
  1108. - Add calls of weak-modules to the %%posttrans & %%preun scripts.
  1109.  
  1110. * Tue May 20 2014 Alan Bartlett <ajb@elrepo.org> - 3.14.4-0.rc1
  1111. - [https://www.kernel.org/pub/linux/kernel/v3.x/ChangeLog-3.14.4]
  1112. - Skip the beta phase.
  1113. - The first release candidate of a kernel-ml package set for EL7.
  1114.  
  1115. * Mon May 19 2014 Alan Bartlett <ajb@elrepo.org> - 3.14.4-0.alpha3
  1116. - [https://www.kernel.org/pub/linux/kernel/v3.x/ChangeLog-3.14.4]
  1117. - The third attempt to build a kernel-ml package set for EL7.
  1118.  
  1119. * Sun May 18 2014 Alan Bartlett <ajb@elrepo.org> - 3.14.4-0.alpha2
  1120. - [https://www.kernel.org/pub/linux/kernel/v3.x/ChangeLog-3.14.4]
  1121. - The second attempt to build a kernel-ml package set for EL7.
  1122.  
  1123. * Sat May 17 2014 Alan Bartlett <ajb@elrepo.org> - 3.14.4-0.alpha1
  1124. - [https://www.kernel.org/pub/linux/kernel/v3.x/ChangeLog-3.14.4]
  1125. - The first attempt to build a kernel-ml package set for EL7.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement