Search
SailfishOS Open Build Service
>
Projects
>
nemo
:
devel:hw
:
nv:tegra3:nexus7
>
kernel-adaptation-google-nexus7
> kernel-adaptation-google-nexus7.spec
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
File kernel-adaptation-google-nexus7.spec of Package kernel-adaptation-google-nexus7
# # Do NOT Edit the Auto-generated Part! # Generated by: spectacle version 0.25 # Name: kernel-adaptation-google-nexus7 # >> macros %define kernel_version 3.1.10 %define kernel_devel_dir %{_prefix}/src/kernels/%{kernel_version} # << macros Summary: Linux kernel adaptation for Google Nexus7 Version: 3.1.10+9.26 Release: 1 Group: Kernel/Linux Kernel License: GPLv2 ExclusiveArch: %{arm} Source0: linux-nexus7_3.1.10-9.26.tar.gz Source1: %{name}.config Source100: kernel-adaptation-google-nexus7.yaml Source101: kernel-adaptation-google-nexus7-rpmlintrc Patch0: 0001-Fix-g_multi-USB-gadget-support-on-Nexus7.patch Patch1: re-apply_landscape_coordinate_touchscreen_patch.patch Patch2: console_lock.patch Patch3: allow-turning-off-backlight.patch Requires: module-init-tools BuildRequires: pkgconfig(ncurses) BuildRequires: module-init-tools BuildRequires: fdupes Provides: kernel = %{kernel_version} Provides: kernel-adaptation-google-nexus7 %description Google Nexus7 Linux kernel %package devel Summary: Devel files for Google Nexus7 Linux kernel adaptation Group: Development/System Requires: %{name} = %{version}-%{release} Provides: kernel-devel = %{kernel_version} %description devel Development files of the Google Nexus7 GPL Linux kernel %prep %setup -q -n ubuntu-nexus7 # 0001-Fix-g_multi-USB-gadget-support-on-Nexus7.patch %patch0 -p1 # re-apply_landscape_coordinate_touchscreen_patch.patch %patch1 -p1 # console_lock.patch %patch2 -p1 # allow-turning-off-backlight.patch %patch3 -p1 # >> setup # << setup %build # >> build pre cp %{SOURCE1} ./.config make oldconfig prepare scripts make %{?jobs:-j%jobs} zImage make %{?jobs:-j%jobs} modules #make ARCH=arm android_archos_defconfig ##make oldconfig ##make prepare ##make %{?jobs:-j%jobs} zImage ##make %{?jobs:-j%jobs} modules ##make %{?jobs:-j%jobs} prepare # << build pre # >> build post # << build post %install rm -rf %{buildroot} # >> install pre # Modules make INSTALL_MOD_PATH=%{buildroot} modules_install mkdir -p %{buildroot}/boot/ make INSTALL_PATH=%{buildroot}/boot/ install install -m 755 arch/arm/boot/zImage %{buildroot}/boot/ mkdir -p %{buildroot}/lib/modules/%{kernel_version}/ touch %{buildroot}/lib/modules/%{kernel_version}/modules.dep # And save the headers/makefiles etc for building modules against # # This all looks scary, but the end result is supposed to be: # * all arch relevant include/ files # * all Makefile/Kconfig files # * all script/ files #rm -f $RPM_BUILD_ROOT/lib/modules/$KernelVer/source mkdir -p %{buildroot}/%{kernel_devel_dir} #(cd $RPM_BUILD_ROOT/lib/modules/$KernelVer ; ln -s build source) # dirs for additional modules per module-init-tools, kbuild/modules.txt # first copy everything cp --parents `find -type f -name "Makefile*" -o -name "Kconfig*"` %{buildroot}/%{kernel_devel_dir} cp Module.symvers %{buildroot}/%{kernel_devel_dir} cp System.map %{buildroot}/%{kernel_devel_dir} if [ -s Module.markers ]; then cp Module.markers %{buildroot}/%{kernel_devel_dir} fi # then drop all but the needed Makefiles/Kconfig files rm -rf %{buildroot}/%{kernel_devel_dir}/Documentation rm -rf %{buildroot}/%{kernel_devel_dir}/scripts rm -rf %{buildroot}/%{kernel_devel_dir}/include cp .config %{buildroot}/%{kernel_devel_dir} cp -a scripts %{buildroot}/%{kernel_devel_dir} if [ -d arch/%{_arch}/scripts ]; then cp -a arch/%{_arch}/scripts %{buildroot}/%{kernel_devel_dir}/arch/%{_arch} || : fi if [ -f arch/%{_arch}/*lds ]; then cp -a arch/%{_arch}/*lds %{buildroot}/%{kernel_devel_dir}/arch/%{_arch}/ || : fi rm -f %{buildroot}/%{kernel_devel_dir}/scripts/*.o rm -f %{buildroot}/%{kernel_devel_dir}/scripts/*/*.o cp -a --parents arch/arm/include %{buildroot}/%{kernel_devel_dir} cp -a --parents arch/arm/mach-*/include %{buildroot}/%{kernel_devel_dir} cp -a --parents arch/arm/plat-*/include %{buildroot}/%{kernel_devel_dir} mkdir -p %{buildroot}/%{kernel_devel_dir}/include cd include cp -a acpi asm-generic config crypto drm generated keys linux math-emu media mtd net pcmcia rdma rxrpc scsi sound video trace %{buildroot}/%{kernel_devel_dir}/include # Make sure the Makefile and version.h have a matching timestamp so that # external modules can be built touch -r %{buildroot}/%{kernel_devel_dir}/Makefile %{buildroot}/%{kernel_devel_dir}/include/linux/version.h touch -r %{buildroot}/%{kernel_devel_dir}/.config %{buildroot}/%{kernel_devel_dir}/include/linux/autoconf.h # Copy .config to include/config/auto.conf so "make prepare" is unnecessary. cp %{buildroot}/%{kernel_devel_dir}/.config %{buildroot}/%{kernel_devel_dir}/include/config/auto.conf cd .. # << install pre # >> install post # Add mechanism to load needed modules automatically by systemd at bootup MODULES_LOAD_DIR=%{buildroot}/%{_sysconfdir}/modules-load.d mkdir -p ${MODULES_LOAD_DIR} # Add configs for modules. MODPROBE_CONF_DIR=%{buildroot}/%{_sysconfdir}/modprobe.d mkdir -p ${MODPROBE_CONF_DIR} # This is an example of how we would define a module to be loaded on startup. #echo "usbserial" > ${MODULES_LOAD_DIR}/usbserial.conf # And this snippet shows how a module would be configured with given parameters. #echo "options usbserial vendor=0x1bbb product=0x00b7" > ${MODPROBE_CONF_DIR}/archos-3g-stick.conf # See also the .yaml file for adding the required files to the package. # << install post %fdupes %{buildroot}/%{_prefix}/src/kernels/%{kernel_version}/ %files %defattr(-,root,root,-) /lib/modules/%{kernel_version}/* /boot/System.map-%{kernel_version} /boot/vmlinux-%{kernel_version} /boot/zImage # >> files # << files %files devel %defattr(-,root,root,-) /%{_prefix}/src/kernels/%{kernel_version}/* /%{_prefix}/src/kernels/%{kernel_version}/.config # >> files devel # << files devel