⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 mkspec

📁 嵌入式系统设计与实例开发源码
💻
字号:
#!/bin/sh##	Output a simple RPM spec file that uses no fancy features requring#	RPM v4. This is intended to work with any RPM distro.##	The only gothic bit here is redefining install_post to avoid #	stripping the symbols from files in the kernel which we want#echo "Name: kernel"echo "Summary: The Linux Kernel"echo "Version: "$VERSION.$PATCHLEVEL.$SUBLEVEL$EXTRAVERSION | sed -e "s/-//g"# we need to determine the NEXT version number so that uname and# rpm -q will agreeecho "Release: `. scripts/mkversion`"echo "License: GPL"echo "Group: System Environment/Kernel"echo "Vendor: The Linux Community"echo "URL: http://www.kernel.org"echo -n "Source: kernel-$VERSION.$PATCHLEVEL.$SUBLEVEL"echo "$EXTRAVERSION.tar.gz" | sed -e "s/-//g"echo "BuildRoot: /var/tmp/%{name}-%{PACKAGE_VERSION}-root"echo "%define __spec_install_post /usr/lib/rpm/brp-compress || :"echo ""echo "%description"echo "The Linux Kernel, the operating system core itself"echo ""echo "%prep"echo "%setup -q"echo ""echo "%build"echo "make oldconfig dep clean bzImage modules"echo ""echo "%install"echo 'mkdir -p $RPM_BUILD_ROOT/boot $RPM_BUILD_ROOT/lib $RPM_BUILD_ROOT/lib/modules'echo 'INSTALL_MOD_PATH=$RPM_BUILD_ROOT make modules_install'echo 'cp arch/i386/boot/bzImage $RPM_BUILD_ROOT'"/boot/vmlinuz-$VERSION.$PATCHLEVEL.$SUBLEVEL$EXTRAVERSION"echo 'cp System.map $RPM_BUILD_ROOT'"/boot/System.map-$VERSION.$PATCHLEVEL.$SUBLEVEL$EXTRAVERSION"echo ""echo "%clean"echo '#echo -rf $RPM_BUILD_ROOT'echo ""echo "%files"echo '%defattr (-, root, root)'echo "%dir /lib/modules"echo "/lib/modules/$VERSION.$PATCHLEVEL.$SUBLEVEL$EXTRAVERSION"echo "/boot/*"echo ""

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -