LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 1063|回复: 0

请教ganloo兄弟,用ABS编译内核出现的错误。

[复制链接]
发表于 2005-2-23 20:56:09 | 显示全部楼层 |阅读模式
内核编译成功,但为什么会出现这样的问题?? :ask


  1. if [ -r System.map ]; then /sbin/depmod -ae -F System.map -b /var/abs/local/kernel-custom/kernel-nitro/pkg -r 2.6.10-nitro4-ARCH; fi
  2. ==> Compressing man pages...
  3. ==> Stripping debugging symbols from libraries...
  4. /usr/bin/strip: pkg//lib/modules/2.6.10-nitro4-ARCH/modules.usbmap: 不可识别的文件格式
  5. /usr/bin/strip: pkg//lib/modules/2.6.10-nitro4-ARCH/modules.inputmap: 不可识别的文件格式
  6. /usr/bin/strip: pkg//lib/modules/2.6.10-nitro4-ARCH/modules.symbols: 不可识别的 文件格式
  7. /usr/bin/strip: pkg//lib/modules/2.6.10-nitro4-ARCH/modules.isapnpmap: 不可识别 的文件格式
  8. /usr/bin/strip: pkg//lib/modules/2.6.10-nitro4-ARCH/modules.alias: 不可识别的文 件格式
  9. /usr/bin/strip: pkg//lib/modules/2.6.10-nitro4-ARCH/modules.ccwmap: 不可识别的文件格式
  10. /usr/bin/strip: pkg//lib/modules/2.6.10-nitro4-ARCH/modules.dep: 不可识别的文件 格式
  11. /usr/bin/strip: pkg//lib/modules/2.6.10-nitro4-ARCH/modules.ieee1394map: 不可识 别的文件格式
  12. /usr/bin/strip: pkg//lib/modules/2.6.10-nitro4-ARCH/modules.pcimap: 不可识别的文件格式
  13. find: pkg/usr/lib: 没有那个文件或目录
  14. find: pkg/usr/local/lib: 没有那个文件或目录
  15. find: pkg/opt/*/lib: 没有那个文件或目录
  16. ==> Stripping symbols from binaries...
  17. find: pkg//bin: 没有那个文件或目录
  18. find: pkg//sbin: 没有那个文件或目录
  19. find: pkg/usr/bin: 没有那个文件或目录
  20. find: pkg/usr/sbin: 没有那个文件或目录
  21. find: pkg/usr/local/bin: 没有那个文件或目录
  22. find: pkg/usr/local/sbin: 没有那个文件或目录
  23. find: pkg/opt/*/bin: 没有那个文件或目录
  24. find: pkg/opt/*/sbin: 没有那个文件或目录
  25. ==> Generating .PKGINFO file...
  26. ==> Copying install script...
  27. ==> Generating .FILELIST file...
  28. ==> Compressing package...
  29. ==> Finished making: kernel2610-nitro4-ARCH  (三  2月 23 20:48:41 CST 2005)
复制代码


  1. # Contributor: dibblethewrecker <dibblethewrecker@jiwe.org>
  2. pkgname=kernel26
  3. pkgver=2.6.10
  4. pkgrel=1
  5. pkgdesc="The Linux Kernel 2.6.10 and modules (IDE support), built with ... patchset"
  6. url="http://www.kernel.org"
  7. depends=('module-init-tools')
  8. install=kernel26.install

  9. ##### if you are using a single patch from a patchset you can add the name, without it's extention, below
  10. patch=patch-2.6.10-nitro4
  11. ##### add the names of any patches to this section, ensure you have the correct extentions!
  12. source=(logo_linux_clut224.ppm config $patch.bz2 ftp://ftp.kernel.org/pub/linux/kernel/v2.6/linux-$pkgver.tar.bz2 )

  13. # Function to grab var from src
  14. getvar() {
  15.   old=$(cat Makefile | grep "^$1")
  16.   echo $(echo ${old/"$1 ="/} | sed -e "s/[ ]*\(.*\)[ ]*/\1/g")
  17.   return 0
  18. }

  19. build() {
  20.   cd $startdir/src/linux-$pkgver

  21.   ##### Apply any patches here, if you set the patch variable above uncommment the following line
  22.   patch -Np1 -i ../$patch || return 1

  23.   ##### Uncomment for Arch logo - not compatible with gensplash!
  24.   #cp ../logo_linux_clut224.ppm drivers/video/logo/

  25.   # get rid of the 'i' in i686
  26.   carch=`echo $CARCH | sed 's|i||'`
  27.   cat ../config | sed "s|#CARCH#|$carch|g" >./.config

  28.   ##### Load config - uncomment your prefered config method - remember to set LOCALVERSION if desired
  29.   #yes "" | make config
  30.   #make oldconfig || return 1
  31.   make menuconfig
  32.   #make xconfig
  33.   #make gconfig

  34.   ##### NO USER CHANGES BELOW HERE #####

  35.   # save the current pkgname
  36.   old_pkgname=$pkgname

  37.   # set pkgname for build purposes - DO NOT alter!
  38.   pkgname=kernel26

  39.   # save the updated config to build with today's date
  40.   cp ./.config $startdir/config-$(date +%b%d\-%Hh)

  41.   # get EXTRAVERSION from Makefile to create unique /lib/modules/ subdirectories
  42.   _kernextra=$(getvar "EXTRAVERSION")

  43.   # Read the full kernel version info to use in pathnames and pkgname
  44.   . ./.config

  45.   # Kernel custom - to create a unique pkgname (see below)
  46.   _kerncust="${_kernextra}${CONFIG_LOCALVERSION}"
  47.   # Kernel release - will be the same as Makefile
  48.   _kernrel="${pkgver}${_kerncust}"
  49.   # Get the pkgver suffix for unique pkgname and /boot file suffices
  50.   _pkgversuf="`echo $pkgver | sed "s|2.6.||g"`"
  51.   # Set /boot file suffices from kernel release and pkgver suffix
  52.   _kernboot="${_pkgversuf}${_kerncust}"

  53.   # Set a new pkgname from  kernel release and pkgver suffix
  54.   pkgname="${pkgname}${_pkgversuf}${_kerncust}"

  55.   # build!
  56.   make clean bzImage modules || return 1
  57.   mkdir -p $startdir/pkg/{lib/modules,boot}
  58.   make INSTALL_MOD_PATH=$startdir/pkg modules_install || return 1
  59.   cp System.map $startdir/pkg/boot/System.map26${_kernboot}
  60.   cp arch/i386/boot/bzImage $startdir/pkg/boot/vmlinuz26${_kernboot}
  61.   install -D -m644 Makefile \
  62.     $startdir/pkg/usr/src/linux-${_kernrel}/Makefile
  63.   install -D -m644 .config \
  64.     $startdir/pkg/usr/src/linux-${_kernrel}/.config
  65.   install -D -m644 .config $startdir/pkg/boot/kconfig26${_kernboot}
  66.   mkdir -p $startdir/pkg/usr/src/linux-${_kernrel}/include
  67.   mkdir -p $startdir/pkg/usr/src/linux-${_kernrel}/arch/i386/kernel
  68.   for i in acpi asm-generic asm-i386 config linux math-emu net pcmcia scsi video; do
  69.     cp -a include/$i $startdir/pkg/usr/src/linux-${_kernrel}/include/
  70.   done
  71.   # copy files necessary for later builds, like nvidia and vmware
  72.   cp -a scripts $startdir/pkg/usr/src/linux-${_kernrel}
  73.   mkdir -p $startdir/pkg/usr/src/linux-${_kernrel}/.tmp_versions
  74.   cp arch/i386/Makefile $startdir/pkg/usr/src/linux-${_kernrel}/arch/i386/
  75.   cp arch/i386/kernel/asm-offsets.s \
  76.     $startdir/pkg/usr/src/linux-${_kernrel}/arch/i386/kernel/
  77.   # copy in Kconfig files
  78.   for i in `find . -name "Kconfig*"`; do
  79.     mkdir -p $startdir/pkg/usr/src/linux-${_kernrel}/`echo $i | sed 's|/Kconfig.*||'`
  80.     cp $i $startdir/pkg/usr/src/linux-${_kernrel}/$i
  81.   done
  82.   cd $startdir/pkg/usr/src/linux-${_kernrel}/include && ln -s asm-i386 asm
  83.   chown -R root.root $startdir/pkg/usr/src/linux-${_kernrel}
  84.   cd $startdir/pkg/lib/modules/${_kernrel} && \
  85.     (rm -f source build; ln -sf /usr/src/linux-${_kernrel} build)

  86.   # Correct the pkgname in our PKGBUILD - this allows correct gensync operation
  87.   # NOTE: pkgname variable must be declared with first 10 lines of PKGBUILD!
  88.   cd $startdir
  89.   sed -i "1,11 s|pkgname=$old_pkgname|pkgname=$pkgname|" ./PKGBUILD
  90. }




复制代码
您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表