Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 602261 Details for
Bug 845758
perf for kernel-3.5.0-2.fc17.src.rpm won't build on Fedora 17, fails at traceevent
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
Associated rpm-tmp
rpm-tmp.hqbj06 (text/plain), 11.58 KB, created by
James
on 2012-08-04 17:09:50 UTC
(
hide
)
Description:
Associated rpm-tmp
Filename:
MIME Type:
Creator:
James
Created:
2012-08-04 17:09:50 UTC
Size:
11.58 KB
patch
obsolete
>#!/bin/sh > > RPM_SOURCE_DIR="/home/james/src/rpmbuild/SOURCES" > RPM_BUILD_DIR="/home/james/src/rpmbuild/BUILD" > RPM_OPT_FLAGS="-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic" > RPM_LD_FLAGS="-Wl,-z,relro " > RPM_ARCH="x86_64" > RPM_OS="linux" > export RPM_SOURCE_DIR RPM_BUILD_DIR RPM_OPT_FLAGS RPM_LD_FLAGS RPM_ARCH RPM_OS > RPM_DOC_DIR="/usr/share/doc" > export RPM_DOC_DIR > RPM_PACKAGE_NAME="kernel" > RPM_PACKAGE_VERSION="3.5.0" > RPM_PACKAGE_RELEASE="2.nspire2760.22.fc17" > export RPM_PACKAGE_NAME RPM_PACKAGE_VERSION RPM_PACKAGE_RELEASE > LANG=C > export LANG > unset CDPATH DISPLAY ||: > RPM_BUILD_ROOT="/home/james/src/rpmbuild/BUILDROOT/kernel-3.5.0-2.nspire2760.22.fc17.x86_64" > export RPM_BUILD_ROOT > > PKG_CONFIG_PATH="/usr/lib64/pkgconfig:/usr/share/pkgconfig" > export PKG_CONFIG_PATH > > set -x > umask 022 > cd "/home/james/src/rpmbuild/BUILD" >cd 'kernel-3.5.fc17' >LANG=C >export LANG >unset DISPLAY > > > > >cp_vmlinux() >{ > eu-strip --remove-comment -o "$2" "$1" >} > >BuildKernel() { > MakeTarget=$1 > KernelImage=$2 > Flavour=$3 > InstallName=${4:-vmlinuz} > > # Pick the right config file for the kernel we're building > Config=kernel-3.5.0-x86_64${Flavour:+-${Flavour}}.config > DevelDir=/usr/src/kernels/3.5.0-2.nspire2760.22.fc17.x86_64${Flavour:+.${Flavour}} > > # When the bootable image is just the ELF kernel, strip it. > # We already copy the unstripped file into the debuginfo package. > if [ "$KernelImage" = vmlinux ]; then > CopyKernel=cp_vmlinux > else > CopyKernel=cp > fi > > KernelVer=3.5.0-2.nspire2760.22.fc17.x86_64${Flavour:+.${Flavour}} > echo BUILDING A KERNEL FOR ${Flavour} x86_64... > > > # make sure EXTRAVERSION says what we want it to say > perl -p -i -e "s/^EXTRAVERSION.*/EXTRAVERSION = -2.nspire2760.22.fc17.x86_64${Flavour:+.${Flavour}}/" Makefile > > # if pre-rc1 devel kernel, must fix up PATCHLEVEL for our versioning scheme > > # and now to start the build process > > make -s mrproper > cp configs/$Config .config > > Arch=`head -1 .config | cut -b 3-` > echo USING ARCH=$Arch > > make -s ARCH=$Arch oldnoconfig >/dev/null > make -s ARCH=$Arch V=1 -j8 $MakeTarget > make -s ARCH=$Arch V=1 -j8 modules || exit 1 > > # Start installing the results > mkdir -p $RPM_BUILD_ROOT/boot > install -m 644 .config $RPM_BUILD_ROOT/boot/config-$KernelVer > install -m 644 System.map $RPM_BUILD_ROOT/boot/System.map-$KernelVer > > # We estimate the size of the initramfs because rpm needs to take this size > # into consideration when performing disk space calculations. (See bz #530778) > dd if=/dev/zero of=$RPM_BUILD_ROOT/boot/initramfs-$KernelVer.img bs=1M count=20 > > if [ -f arch/$Arch/boot/zImage.stub ]; then > cp arch/$Arch/boot/zImage.stub $RPM_BUILD_ROOT/boot/zImage.stub-$KernelVer || : > fi > $CopyKernel $KernelImage \ > $RPM_BUILD_ROOT/boot/$InstallName-$KernelVer > chmod 755 $RPM_BUILD_ROOT/boot/$InstallName-$KernelVer > > # hmac sign the kernel for FIPS > echo "Creating hmac file: $RPM_BUILD_ROOT/boot/.vmlinuz-$KernelVer.hmac" > ls -l $RPM_BUILD_ROOT/boot/$InstallName-$KernelVer > sha512hmac $RPM_BUILD_ROOT/boot/$InstallName-$KernelVer | sed -e "s,$RPM_BUILD_ROOT,," > $RPM_BUILD_ROOT/boot/.vmlinuz-$KernelVer.hmac; > > mkdir -p $RPM_BUILD_ROOT/lib/modules/$KernelVer > # Override $(mod-fw) because we don't want it to install any firmware > # we'll get it from the linux-firmware package and we don't want conflicts > make -s ARCH=$Arch INSTALL_MOD_PATH=$RPM_BUILD_ROOT modules_install KERNELRELEASE=$KernelVer mod-fw= > make -s ARCH=$Arch INSTALL_MOD_PATH=$RPM_BUILD_ROOT vdso_install KERNELRELEASE=$KernelVer > if [ ! -s ldconfig-kernel.conf ]; then > echo > ldconfig-kernel.conf "\ ># Placeholder file, no vDSO hwcap entries used in this kernel." > fi > /usr/bin/install -D -m 444 ldconfig-kernel.conf \ > $RPM_BUILD_ROOT/etc/ld.so.conf.d/kernel-$KernelVer.conf > > # 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/build > rm -f $RPM_BUILD_ROOT/lib/modules/$KernelVer/source > mkdir -p $RPM_BUILD_ROOT/lib/modules/$KernelVer/build > (cd $RPM_BUILD_ROOT/lib/modules/$KernelVer ; ln -s build source) > # dirs for additional modules per module-init-tools, kbuild/modules.txt > mkdir -p $RPM_BUILD_ROOT/lib/modules/$KernelVer/extra > mkdir -p $RPM_BUILD_ROOT/lib/modules/$KernelVer/updates > # first copy everything > cp --parents `find -type f -name "Makefile*" -o -name "Kconfig*"` $RPM_BUILD_ROOT/lib/modules/$KernelVer/build > cp Module.symvers $RPM_BUILD_ROOT/lib/modules/$KernelVer/build > cp System.map $RPM_BUILD_ROOT/lib/modules/$KernelVer/build > if [ -s Module.markers ]; then > cp Module.markers $RPM_BUILD_ROOT/lib/modules/$KernelVer/build > fi > # then drop all but the needed Makefiles/Kconfig files > rm -rf $RPM_BUILD_ROOT/lib/modules/$KernelVer/build/Documentation > rm -rf $RPM_BUILD_ROOT/lib/modules/$KernelVer/build/scripts > rm -rf $RPM_BUILD_ROOT/lib/modules/$KernelVer/build/include > cp .config $RPM_BUILD_ROOT/lib/modules/$KernelVer/build > cp -a scripts $RPM_BUILD_ROOT/lib/modules/$KernelVer/build > if [ -d arch/$Arch/scripts ]; then > cp -a arch/$Arch/scripts $RPM_BUILD_ROOT/lib/modules/$KernelVer/build/arch/x86_64 || : > fi > if [ -f arch/$Arch/*lds ]; then > cp -a arch/$Arch/*lds $RPM_BUILD_ROOT/lib/modules/$KernelVer/build/arch/x86_64/ || : > fi > rm -f $RPM_BUILD_ROOT/lib/modules/$KernelVer/build/scripts/*.o > rm -f $RPM_BUILD_ROOT/lib/modules/$KernelVer/build/scripts/*/*.o > if [ -d arch/x86/include ]; then > cp -a --parents arch/x86/include $RPM_BUILD_ROOT/lib/modules/$KernelVer/build/ > fi > # include the machine specific headers for ARM variants, if available. > cp -a include $RPM_BUILD_ROOT/lib/modules/$KernelVer/build/include > > # Make sure the Makefile and version.h have a matching timestamp so that > # external modules can be built > touch -r $RPM_BUILD_ROOT/lib/modules/$KernelVer/build/Makefile $RPM_BUILD_ROOT/lib/modules/$KernelVer/build/include/linux/version.h > touch -r $RPM_BUILD_ROOT/lib/modules/$KernelVer/build/.config $RPM_BUILD_ROOT/lib/modules/$KernelVer/build/include/linux/autoconf.h > # Copy .config to include/config/auto.conf so "make prepare" is unnecessary. > cp $RPM_BUILD_ROOT/lib/modules/$KernelVer/build/.config $RPM_BUILD_ROOT/lib/modules/$KernelVer/build/include/config/auto.conf > > > find $RPM_BUILD_ROOT/lib/modules/$KernelVer -name "*.ko" -type f >modnames > > # mark modules executable so that strip-to-file can strip them > xargs --no-run-if-empty chmod u+x < modnames > > # Generate a list of modules for block and networking. > > grep -F /drivers/ modnames | xargs --no-run-if-empty nm -upA | > sed -n 's,^.*/\([^/]*\.ko\): *U \(.*\)$,\1 \2,p' > drivers.undef > > collect_modules_list() > { > sed -r -n -e "s/^([^ ]+) \\.?($2)\$/\\1/p" drivers.undef | > LC_ALL=C sort -u > $RPM_BUILD_ROOT/lib/modules/$KernelVer/modules.$1 > } > > collect_modules_list networking \ > 'register_netdev|ieee80211_register_hw|usbnet_probe|phy_driver_register|rt(l_|2x00)(pci|usb)_probe' > collect_modules_list block \ > 'ata_scsi_ioctl|scsi_add_host|scsi_add_host_with_dma|blk_init_queue|register_mtd_blktrans|scsi_esp_register|scsi_register_device_handler' > collect_modules_list drm \ > 'drm_open|drm_init' > collect_modules_list modesetting \ > 'drm_crtc_init' > > # detect missing or incorrect license tags > rm -f modinfo > while read i > do > echo -n "${i#$RPM_BUILD_ROOT/lib/modules/$KernelVer/} " >> modinfo > /sbin/modinfo -l $i >> modinfo > done < modnames > > grep -E -v \ > 'GPL( v2)?$|Dual BSD/GPL$|Dual MPL/GPL$|GPL and additional rights$' \ > modinfo && exit 1 > > rm -f modinfo modnames > > pushd $RPM_BUILD_ROOT/lib/modules/$KernelVer/ > rm -rf modnames > find . -name "*.ko" -type f > modnames > # Look through all of the modules, and throw any that have a dependency in > # our list into the list as well. > rm -rf dep.list dep2.list > rm -rf req.list req2.list > touch dep.list req.list > cp /home/james/src/rpmbuild/SOURCES/mod-extra.list . > for dep in `cat modnames` > do > depends=`modinfo $dep | grep depends| cut -f2 -d":" | sed -e 's/^[ \t]*//'` > [ -z "$depends" ] && continue; > for mod in `echo $depends | sed -e 's/,/ /g'` > do > match=`grep "^$mod.ko" mod-extra.list` ||: > if [ -z "$match" ] > then > continue > else > # check if the module we're looking at is in mod-extra too. if so > # we don't need to mark the dep as required > mod2=`basename $dep` > match2=`grep "^$mod2" mod-extra.list` ||: > if [ -n "$match2" ] > then > continue > #echo $mod2 >> notreq.list > else > echo $mod.ko >> req.list > fi > fi > done > done > > sort -u req.list > req2.list > sort -u mod-extra.list > mod-extra2.list > join -v 1 mod-extra2.list req2.list > mod-extra3.list > > for mod in `cat mod-extra3.list` > do > # get the path for the module > modpath=`grep /$mod modnames` ||: > [ -z "$modpath" ] && continue; > echo $modpath >> dep.list > done > > sort -u dep.list > dep2.list > > # now move the modules into the extra/ directory > for mod in `cat dep2.list` > do > newpath=`dirname $mod | sed -e 's/kernel\//extra\//'` > mkdir -p $newpath > mv $mod $newpath > done > > rm modnames dep.list dep2.list req.list req2.list > rm mod-extra.list mod-extra2.list mod-extra3.list > popd > > # remove files that will be auto generated by depmod at rpm -i time > for i in alias alias.bin builtin.bin ccwmap dep dep.bin ieee1394map inputmap isapnpmap ofmap pcimap seriomap symbols symbols.bin usbmap > do > rm -f $RPM_BUILD_ROOT/lib/modules/$KernelVer/modules.$i > done > > # Move the devel headers out of the root file system > mkdir -p $RPM_BUILD_ROOT/usr/src/kernels > mv $RPM_BUILD_ROOT/lib/modules/$KernelVer/build $RPM_BUILD_ROOT/$DevelDir > > # This is going to create a broken link during the build, but we don't use > # it after this point. We need the link to actually point to something > # when kernel-devel is installed, and a relative link doesn't work across > # the F17 UsrMove feature. > ln -sf $DevelDir $RPM_BUILD_ROOT/lib/modules/$KernelVer/build > > # prune junk from kernel-devel > find $RPM_BUILD_ROOT/usr/src/kernels -name ".*.cmd" -exec rm -f {} \; >} > >### ># DO it... >### > ># prepare directories >rm -rf $RPM_BUILD_ROOT >mkdir -p $RPM_BUILD_ROOT/boot >mkdir -p $RPM_BUILD_ROOT/usr/libexec > >cd linux-3.5.0-2.nspire2760.22.fc17.x86_64 > > > > > > > > > >BuildKernel bzImage arch/x86/boot/bzImage > > ># perf > > make -j8 -C tools/perf -s V=1 EXTRA_CFLAGS="-Wno-error=array-bounds" HAVE_CPLUS_DEMANGLE=1 prefix=/usr all > > make -j8 -C tools/perf -s V=1 EXTRA_CFLAGS="-Wno-error=array-bounds" HAVE_CPLUS_DEMANGLE=1 prefix=/usr man || false > ># cpupower ># make sure version-gen.sh is executable. >chmod +x tools/power/cpupower/utils/version-gen.sh >make -j8 -C tools/power/cpupower CPUFREQ_BENCH=false > cd tools/power/cpupower/debug/x86_64 > make -j8 centrino-decode powernow-k8-decode > cd - > cd tools/power/x86/x86_energy_perf_policy/ > make > cd - > cd tools/power/x86/turbostat > make > cd - > > >### >### Special hacks for debuginfo subpackages. >### > ># This macro is used by %install, so we must redefine it before that. > > >### >### install >### > > >exit 0
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 845758
:
602260
| 602261