[opensuse-kernel] setup command syntax , to unpack to /usr/src directory
What is the syntax with the 'setup' command to unpack linux-2.6.35.1.tar.bz2 to the /usr/src/ location ready for compilation ?. [start of content list] # tar -jtvf linux-2.6.35.1.tar.bz2 | head drwxrwxr-x root/root 0 2010-08-11 04:37 linux-2.6.35.1/ -rw-rw-r-- root/root 936 2010-08-11 04:37 linux-2.6.35.1/.gitignore -rw-rw-r-- root/root 4021 2010-08-11 04:37 linux-2.6.35.1/.mailmap -rw-rw-r-- root/root 18693 2010-08-11 04:37 linux-2.6.35.1/COPYING -rw-rw-r-- root/root 94031 2010-08-11 04:37 linux-2.6.35.1/CREDITS drwxrwxr-x root/root 0 2010-08-11 04:37 linux-2.6.35.1/Documentation/ -rw-rw-r-- root/root 107 2010-08-11 04:37 linux-2.6.35.1/Documentation/.gitignore -rw-rw-r-- root/root 12342 2010-08-11 04:37 linux-2.6.35.1/Documentation/00-INDEX drwxrwxr-x root/root 0 2010-08-11 04:37 linux-2.6.35.1/Documentation/ABI/ -rw-rw-r-- root/root 3427 2010-08-11 04:37 linux-2.6.35.1/Documentation/ABI/README My spec file has the following so far Name: kernel Summary: The Linux Kernel Version: linux-2.6.35.1 Release: 1 License: GPL Group: System Environment/Kernel Vendor: The Linux Community URL: http://www.kernel.org Source: linux-2.6.35.1.tar.bz2 BuildRoot: %{_tmppath}/%{name}-%{PACKAGE_VERSION}-root Provides: linux-2.6.35.1 %define __spec_install_post /usr/lib/rpm/brp-compress || : %define debug_package %{nil} %description The Linux Kernel, the operating system core itself %prep %setup -q Have you got a list of setup examples Thanks for the info Glenn -- To unsubscribe, e-mail: opensuse-kernel+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-kernel+help@opensuse.org
On Thu, Aug 12, 2010 at 12:08:36AM +1000, doiggl@velocitynet.com.au wrote:
What is the syntax with the 'setup' command to unpack linux-2.6.35.1.tar.bz2 to the /usr/src/ location ready for compilation ?.
[start of content list] # tar -jtvf linux-2.6.35.1.tar.bz2 | head drwxrwxr-x root/root 0 2010-08-11 04:37 linux-2.6.35.1/ -rw-rw-r-- root/root 936 2010-08-11 04:37 linux-2.6.35.1/.gitignore -rw-rw-r-- root/root 4021 2010-08-11 04:37 linux-2.6.35.1/.mailmap -rw-rw-r-- root/root 18693 2010-08-11 04:37 linux-2.6.35.1/COPYING -rw-rw-r-- root/root 94031 2010-08-11 04:37 linux-2.6.35.1/CREDITS drwxrwxr-x root/root 0 2010-08-11 04:37 linux-2.6.35.1/Documentation/ -rw-rw-r-- root/root 107 2010-08-11 04:37 linux-2.6.35.1/Documentation/.gitignore -rw-rw-r-- root/root 12342 2010-08-11 04:37 linux-2.6.35.1/Documentation/00-INDEX drwxrwxr-x root/root 0 2010-08-11 04:37 linux-2.6.35.1/Documentation/ABI/ -rw-rw-r-- root/root 3427 2010-08-11 04:37 linux-2.6.35.1/Documentation/ABI/README
My spec file has the following so far
<snip> Why not just look at the existing kernel .spec files and use those as an example? good luck, greg k-h -- To unsubscribe, e-mail: opensuse-kernel+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-kernel+help@opensuse.org
participants (2)
-
doiggl@velocitynet.com.au
-
Greg KH