1. 09 10月, 2017 2 次提交
  2. 20 9月, 2017 2 次提交
    • M
      kbuild: rpm-pkg: fix version number handling · 25b080bd
      Masahiro Yamada 提交于
      The "Release:" field of the spec file is determined based on the
      .version file.
      
      However, the .version file is not copied to the source tar file.
      So, when we build the kernel from the source package, the UTS_VERSION
      always indicates #1.  This does not match with "rpm -q".
      
      The kernel UTS_VERSION and "rpm -q" do not agree for binrpm-pkg, either.
      Please note the kernel has already been built before the spec file is
      created.  Currently, mkspec invokes mkversion.  This script returns an
      incremented version.  So, the "Release:" field of the spec file is
      greater than the version in the kernel by one.
      
      For the source package build (where .version file is missing), we can
      give KBUILD_BUILD_VERSION=%{release} to the build command.
      
      For the binary package build, we can simply read out the .version file
      because it contains the version number that was used for building the
      kernel image.
      
      We can remove scripts/mkversion because scripts/package/Makefile need
      not touch the .version file.
      Signed-off-by: NMasahiro Yamada <yamada.masahiro@socionext.com>
      25b080bd
    • M
      kbuild: rpm-pkg: delete firmware_install to fix build error · 9e090074
      Masahiro Yamada 提交于
      Commit 5620a0d1 ("firmware: delete in-kernel firmware") deleted
      in-kernel firmware support, including "make firmware_install".
      
      Since then, "make rpm-pkg" / "make binrpm-pkg" fails to build with
      the error:
      
        make[2]: *** No rule to make target `firmware_install'.  Stop.
      
      Commit df85b2d7 ("firmware: Restore support for built-in firmware")
      restored the build infrastructure for CONFIG_EXTRA_FIRMWARE, but this
      is out of the scope of "make firmware_install".  So, the right thing to
      do is to kill the use of "make firmware_install".
      
      Fixes: 5620a0d1 ("firmware: delete in-kernel firmware")
      Signed-off-by: NMasahiro Yamada <yamada.masahiro@socionext.com>
      Acked-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      9e090074
  3. 11 12月, 2016 1 次提交
  4. 20 4月, 2016 1 次提交
    • J
      kbuild/mkspec: support 'update-bootloader'-based systems · 27c3bffd
      Jiri Kosina 提交于
      When uninstalling kernel RPM, we're unconditionally calling
      "new-kernel-pkg --remove". This is useless on systems which are based on
      'update-bootloader' script instead.
      
      Support update-bootloader removal method as well in case the script is
      present; contrary to new-kernel-pkg, this needs to be done in %postun,
      otherwise update-bootloader will refuse to remove entry for kernel for
      which the binary still exists.
      Signed-off-by: NJiri Kosina <jkosina@suse.cz>
      Signed-off-by: NMichal Marek <mmarek@suse.com>
      27c3bffd
  5. 05 3月, 2016 1 次提交
  6. 26 2月, 2016 1 次提交
    • J
      kbuild/mkspec: fix grub2 installkernel issue · c8b08ca5
      Jiri Kosina 提交于
      mkspec is copying built kernel to temporrary location
      
      	/boot/vmlinuz-$KERNELRELEASE-rpm
      
      and runs installkernel on it. This however directly leads to grub2
      menuentry for this suffixed binary being generated as well during the run
      of installkernel script.
      
      Later in the process the temporary -rpm suffixed files are removed, and
      therefore we end up with spurious (and non-functional) grub2 menu entries
      for each installed kernel RPM.
      
      Fix that by using a different temporary name (prefixed by '.'), so that
      the binary is not recognized as an actual kernel binary and no menuentry
      is created for it.
      Signed-off-by: NJiri Kosina <jkosina@suse.cz>
      Fixes: 3c9c7a14 ("rpm-pkg: add %post section to create initramfs and grub hooks")
      Signed-off-by: NMichal Marek <mmarek@suse.com>
      c8b08ca5
  7. 26 8月, 2015 1 次提交
  8. 27 4月, 2015 1 次提交
  9. 08 12月, 2014 1 次提交
  10. 23 7月, 2013 3 次提交
  11. 24 6月, 2013 1 次提交
    • M
      kbuild: fix error when building from src rpm · c398ff00
      Mike Marciniszyn 提交于
      The following issue can be reproduced with Linus' tree on
      an x86_64 server.
      
      >+ cp /home/user/rpmbuild-test/BUILDROOT/kernel-3.9.2.x86_64/boot/vmlinuz-3.9.2
      >cp: missing destination file operand after
      >/home/user/rpmbuild-test/BUILDROOT/kernel-3.9.2-1.x86_64/boot/vmlinuz-3.9.2'
      >Try `cp --help' for more information.
      >error: Bad exit status from /var/tmp/rpm-tmp.R4o0iI (%install)
      
      Here are the commands to reproduce:
      
      make defconfig
      make rpm-pkg
      
      Use the resulting src rpm to build as follows:
      
      mkdir ~/rpmbuild-test
      cd ~/rpmbuild-test
      rpmbuild --rebuild --define "_topdir `pwd`" -vv ~/rpmbuild/SRPMS/kernel-3.10.0_rc1+-1.src.rpm
      
      The issue is because the %install script uses $KBUILD_IMAGE and it hasn't
      been set since it is only available in the kbuild system and not in the
      %install script.
      
      This patch adds a Makefile target to emit the image_name that can be used
      and modifies the mkspec to use the dynamic name in %install.
      Signed-off-by: NMike Marciniszyn <mike.marciniszyn@intel.com>
      Signed-off-by: NMichal Marek <mmarek@suse.cz>
      c398ff00
  12. 22 2月, 2013 1 次提交
    • D
      kbuild: clear KBUILD_SRC when calling 'make' in RPM spec · e0367a61
      David R. Bild 提交于
      'make rpm-pkg' and 'make binrpm-pkg' fail when the kernel source is
      read-only.  Specifically, when the RPM spec generated by
      scripts/package/mkspec is run, KBUILD_SRC happens to be set to the
      source location and thus the invocation of 'make headers_install'
      fails when an internal call to 'filechk' tries to write a file into
      the source tree.
      
      The fix is to clear KBUILD_SRC for the 'make headers_install'
      invocation in the spec file, as is already done for the 'make
      modules_install' invocation.
      Signed-off-by: NDavid R. Bild <drbild@umich.edu>
      Signed-off-by: NMichal Marek <mmarek@suse.cz>
      e0367a61
  13. 25 5月, 2011 1 次提交
  14. 05 5月, 2011 1 次提交
  15. 14 10月, 2010 1 次提交
  16. 29 3月, 2010 1 次提交
  17. 02 2月, 2010 1 次提交
  18. 12 10月, 2009 1 次提交
  19. 07 3月, 2009 1 次提交
  20. 15 2月, 2009 1 次提交
    • J
      kbuild: add vmlinux to kernel rpm · fc370ecf
      Josh Hunt 提交于
      We are building an automated system to test kernels weekly and need to
      provide an rpm to our QA dept.  We would like to use the ability to create
      kernel rpms already in the kernel's Makefile, but need the vmlinux file
      included in the rpm for later debugging.
      
      This patch adds a compressed vmlinux to the kernel rpm when doing a
      make rpm-pkg or binrpm-pkg and upon install places the vmlinux file in /boot.
      Signed-off-by: NJosh Hunt <josh@scalex86.org>
      Signed-off-by: NSam Ravnborg <sam@ravnborg.org>
      fc370ecf
  21. 30 10月, 2008 2 次提交
  22. 25 9月, 2006 1 次提交
  23. 09 6月, 2006 1 次提交
    • M
      kbuild: fix make rpm for powerpc · 1a0f3d42
      Mike Wolf 提交于
      The default target for most powerpc platforms is zImage.  The
      zImage however is in arch/powerpc/boot and the mkspec script
      was set up to get the kernel from the top level of the kernel
      tree.  This patch copies vmlinux to arch/powerpc/boot and then
      copies the kernel to the tmp directory so the rpm can be made.
      Signed-off-by: NMike Wolf <mjw@us.ibm.com>
      Signed-off-by: NSam Ravnborg <sam@ravnborg.org>
      1a0f3d42
  24. 14 7月, 2005 1 次提交
  25. 17 4月, 2005 1 次提交
    • L
      Linux-2.6.12-rc2 · 1da177e4
      Linus Torvalds 提交于
      Initial git repository build. I'm not bothering with the full history,
      even though we have it. We can create a separate "historical" git
      archive of that later if we want to, and in the meantime it's about
      3.2GB when imported into git - space that would just make the early
      git days unnecessarily complicated, when we don't have a lot of good
      infrastructure for it.
      
      Let it rip!
      1da177e4