You are not logged in.
Hello, I am trying to make a PKGBUILD for kernel 2.6.30rc1 based on the PKGBUILD for the arch stock kernel.
Here is the PKGBUILD:
pkgname=kernel26-devel # Build kernel with a different name
_kernelname=${pkgname#kernel26}
_basekernel=2.6.29.1
pkgver=2.6.30
pkgrel=1
_patchname="patch-${pkgver}-rc1"
pkgdesc="The Linux Kernel and modules"
arch=(i686 x86_64)
license=('GPL2')
groups=('base')
url="http://www.kernel.org"
backup=(etc/mkinitcpio.d/${pkgname}.preset)
depends=('coreutils' 'module-init-tools' 'mkinitcpio>=0.5.20')
# pwc, ieee80211 and hostap-driver26 modules are included in kernel26 now
# nforce package support was abandoned by nvidia, kernel modules should cover everything now.
# kernel24 support is dropped since glibc24
replaces=('kernel24' 'kernel24-scsi' 'kernel26-scsi'
'alsa-driver' 'ieee80211' 'hostap-driver26'
'pwc' 'nforce' 'squashfs' 'unionfs' 'ivtv'
'zd1211' 'kvm-modules' 'iwlwifi' 'rt2x00-cvs'
'gspcav1' 'atl2' 'wlan-ng26' 'aufs')
install=kernel26.install
source=(ftp://ftp.kernel.org/pub/linux/kernel/v2.6/linux-$_basekernel.tar.bz2
http://kernel.org/pub/linux/kernel/v2.6/testing/${_patchname}.bz2
# the main kernel config files
config config.x86_64
# standard config files for mkinitcpio ramdisk
kernel26.preset)
optdepends=('crda: to set the correct wireless channels of your country')
md5sums=()
build() {
KARCH=x86
cd ${srcdir}/linux-$_basekernel
# Add -ARCH patches
# See http://projects.archlinux.org/git/?p=linux-2.6-ARCH.git;a=summary
patch -Np1 -i ${srcdir}/${_patchname} || return 1
if [ "$CARCH" = "x86_64" ]; then
cat ../config.x86_64 >./.config
else
cat ../config >./.config
fi
if [ "${_kernelname}" != "" ]; then
sed -i "s|CONFIG_LOCALVERSION=.*|CONFIG_LOCALVERSION=\"${_kernelname}\"|g" ./.config
fi
# get kernel version
make prepare
_kernver="$(make kernelrelease)"
# load configuration
# Configure the kernel. Replace the line below with one of your choice.
#make menuconfig # CLI menu for configuration
#make xconfig # X-based configuration
#make oldconfig # using old config from previous kernel version
# ... or manually edit .config
####################
# stop here
# this is useful to configure the kernel
#msg "Stopping build"
#return 1
####################
yes "" | make config
# build!
make bzImage modules || return 1
mkdir -p ${pkgdir}/{lib/modules,boot}
make INSTALL_MOD_PATH=${pkgdir} modules_install || return 1
cp System.map ${pkgdir}/boot/System.map26${_kernelname}
cp arch/$KARCH/boot/bzImage ${pkgdir}/boot/vmlinuz26${_kernelname}
install -D -m644 Makefile \
${pkgdir}/usr/src/linux-${_kernver}/Makefile
install -D -m644 kernel/Makefile \
${pkgdir}/usr/src/linux-${_kernver}/kernel/Makefile
install -D -m644 .config \
${pkgdir}/usr/src/linux-${_kernver}/.config
mkdir -p ${pkgdir}/usr/src/linux-${_kernver}/include
for i in acpi asm-{generic,x86} config linux math-emu media net pcmcia scsi sound video; do
cp -a include/$i ${pkgdir}/usr/src/linux-${_kernver}/include/
done
# copy arch includes for external modules
mkdir -p ${pkgdir}/usr/src/linux-${_kernver}/arch/x86
cp -a arch/x86/include ${pkgdir}/usr/src/linux-${_kernver}/arch/x86/
# copy files necessary for later builds, like nvidia and vmware
cp Module.symvers ${pkgdir}/usr/src/linux-${_kernver}
cp -a scripts ${pkgdir}/usr/src/linux-${_kernver}
# fix permissions on scripts dir
chmod og-w -R ${pkgdir}/usr/src/linux-${_kernver}/scripts
#mkdir -p ${pkgdir}/usr/src/linux-${_kernver}/.tmp_versions
mkdir -p ${pkgdir}/usr/src/linux-${_kernver}/arch/$KARCH/kernel
cp arch/$KARCH/Makefile ${pkgdir}/usr/src/linux-${_kernver}/arch/$KARCH/
if [ "$CARCH" = "i686" ]; then
cp arch/$KARCH/Makefile_32.cpu ${pkgdir}/usr/src/linux-${_kernver}/arch/$KARCH/
fi
cp arch/$KARCH/kernel/asm-offsets.s ${pkgdir}/usr/src/linux-${_kernver}/arch/$KARCH/kernel/
# add headers for lirc package
mkdir -p ${pkgdir}/usr/src/linux-${_kernver}/drivers/media/video
cp drivers/media/video/*.h ${pkgdir}/usr/src/linux-${_kernver}/drivers/media/video/
for i in bt8xx cpia2 cx25840 cx88 em28xx et61x251 pwc saa7134 sn9c102 usbvideo zc0301; do
mkdir -p ${pkgdir}/usr/src/linux-${_kernver}/drivers/media/video/$i
cp -a drivers/media/video/$i/*.h ${pkgdir}/usr/src/linux-${_kernver}/drivers/media/video/$i
done
# add dm headers
mkdir -p ${pkgdir}/usr/src/linux-${_kernver}/drivers/md
cp drivers/md/*.h ${pkgdir}/usr/src/linux-${_kernver}/drivers/md
# add inotify.h
mkdir -p ${pkgdir}/usr/src/linux-${_kernver}/include/linux
cp include/linux/inotify.h ${pkgdir}/usr/src/linux-${_kernver}/include/linux/
# add CLUSTERIP file for iptables
mkdir -p ${pkgdir}/usr/src/linux-${_kernver}/net/ipv4/netfilter/
# add wireless headers
mkdir -p ${pkgdir}/usr/src/linux-${_kernver}/net/mac80211/
cp net/mac80211/*.h ${pkgdir}/usr/src/linux-${_kernver}/net/mac80211/
# add dvb headers for external modules
# in reference to:
# http://bugs.archlinux.org/task/9912
mkdir -p ${pkgdir}/usr/src/linux-${_kernver}/drivers/media/dvb/dvb-core
cp drivers/media/dvb/dvb-core/*.h ${pkgdir}/usr/src/linux-${_kernver}/drivers/media/dvb/dvb-core/
# add dvb headers for external modules
# in reference to:
# http://bugs.archlinux.org/task/11194
mkdir -p ${pkgdir}/usr/src/linux-${_kernver}/include/config/dvb/
cp include/config/dvb/*.h ${pkgdir}/usr/src/linux-${_kernver}/include/config/dvb/
# add dvb headers for http://mcentral.de/hg/~mrec/em28xx-new
# in reference to:
# http://bugs.archlinux.org/task/13146
mkdir -p ${pkgdir}/usr/src/linux-${_kernver}/drivers/media/dvb/frontends/
cp drivers/media/dvb/frontends/lgdt330x.h ${pkgdir}/usr/src/linux-${_kernver}/drivers/media/dvb/frontends/
cp drivers/media/video/msp3400-driver.h ${pkgdir}/usr/src/linux-${_kernver}/drivers/media/dvb/frontends/
# add xfs and shmem for aufs building
mkdir -p ${pkgdir}/usr/src/linux-${_kernver}/fs/xfs
mkdir -p ${pkgdir}/usr/src/linux-${_kernver}/mm
cp fs/xfs/xfs_sb.h ${pkgdir}/usr/src/linux-${_kernver}/fs/xfs/xfs_sb.h
# add vmlinux
cp vmlinux ${pkgdir}/usr/src/linux-${_kernver}
# copy in Kconfig files
for i in `find . -name "Kconfig*"`; do
mkdir -p ${pkgdir}/usr/src/linux-${_kernver}/`echo $i | sed 's|/Kconfig.*||'`
cp $i ${pkgdir}/usr/src/linux-${_kernver}/$i
done
cd ${pkgdir}/usr/src/linux-${_kernver}/include && ln -s asm-$KARCH asm
chown -R root.root ${pkgdir}/usr/src/linux-${_kernver}
find ${pkgdir}/usr/src/linux-${_kernver} -type d -exec chmod 755 {} \;
cd ${pkgdir}/lib/modules/${_kernver} && \
(rm -f source build; ln -sf ../../../usr/src/linux-${_kernver} build)
# install fallback mkinitcpio.conf file and preset file for kernel
install -m644 -D ${srcdir}/kernel26.preset ${pkgdir}/etc/mkinitcpio.d/${pkgname}.preset || return 1
# set correct depmod command for install
sed \
-e "s/KERNEL_NAME=.*/KERNEL_NAME=${_kernelname}/g" \
-e "s/KERNEL_VERSION=.*/KERNEL_VERSION=${_kernver}/g" \
-i $startdir/kernel26.install
sed \
-e "s|source .*|source /etc/mkinitcpio.d/kernel26${_kernelname}.kver|g" \
-e "s|default_image=.*|default_image=\"/boot/${pkgname}.img\"|g" \
-e "s|fallback_image=.*|fallback_image=\"/boot/${pkgname}-fallback.img\"|g" \
-i ${pkgdir}/etc/mkinitcpio.d/${pkgname}.preset
echo -e "# DO NOT EDIT THIS FILE\nALL_kver='${_kernver}'" > ${startdir}/pkg/etc/mkinitcpio.d/${pkgname}.kver
# remove unneeded architectures
rm -rf ${pkgdir}/usr/src/linux-${_kernver}/arch/{alpha,arm,arm26,avr32,blackfin,cris,frv,h8300,ia64,m32r,m68k,m68knommu,mips,mn10300,parisc,powerpc,ppc,s390,sh,sh64,sparc,sparc64,um,v850,xtensa}
# remove the firmware
rm -rf ${pkgdir}/lib/firmware
}
But when I try makepkg I get this:
....
patching file net/sunrpc/xprtrdma/rpc_rdma.c
patching file net/sunrpc/xprtrdma/svc_rdma_sendto.c
patching file net/sunrpc/xprtsock.c
patching file net/sysctl_net.c
patching file net/tipc/bcast.c
patching file net/tipc/bcast.h
patching file net/tipc/dbg.c
patching file net/tipc/node.c
patching file net/unix/af_unix.c
patching file net/wanrouter/wanmain.c
patching file net/wanrouter/wanproc.c
patching file net/wimax/Kconfig
patching file net/wimax/op-msg.c
patching file net/wimax/stack.c
patching file net/wireless/Kconfig
patching file net/wireless/Makefile
patching file net/wireless/core.c
patching file net/wireless/core.h
patching file net/wireless/mlme.c
patching file net/wireless/nl80211.c
patching file net/wireless/nl80211.h
patching file net/wireless/reg.c
Hunk #30 FAILED at 1534.
Hunk #31 succeeded at 1627 (offset 2 lines).
Hunk #32 succeeded at 1643 (offset 2 lines).
Hunk #33 FAILED at 1659.
Hunk #34 succeeded at 1715 (offset 4 lines).
Hunk #35 succeeded at 1821 (offset 4 lines).
Hunk #36 succeeded at 1847 (offset 4 lines).
Hunk #37 succeeded at 1863 (offset 4 lines).
Hunk #38 succeeded at 1919 (offset 4 lines).
Hunk #39 succeeded at 1936 (offset 4 lines).
Hunk #40 succeeded at 1968 (offset 4 lines).
Hunk #41 succeeded at 1997 (offset 4 lines).
Hunk #42 succeeded at 2027 (offset 4 lines).
Hunk #43 succeeded at 2064 (offset 4 lines).
Hunk #44 FAILED at 2091.
Hunk #45 succeeded at 2192 (offset 11 lines).
3 out of 45 hunks FAILED -- saving rejects to file net/wireless/reg.c.rej
patching file net/wireless/reg.h
patching file net/wireless/scan.c
patching file net/wireless/sysfs.c
patching file net/wireless/util.c
patching file net/wireless/wext-compat.c
patching file net/x25/af_x25.c
patching file net/xfrm/xfrm_state.c
Reversed (or previously applied) patch detected! Skipping patch.
1 out of 1 hunk ignored -- saving rejects to file net/xfrm/xfrm_state.c.rej
patching file samples/tracepoints/tp-samples-trace.h
patching file samples/tracepoints/tracepoint-sample.c
patching file scripts/Makefile.build
patching file scripts/Makefile.lib
patching file scripts/bin_size
patching file scripts/gcc-x86_32-has-stack-protector.sh
patching file scripts/gcc-x86_64-has-stack-protector.sh
patching file scripts/gen_initramfs_list.sh
patching file scripts/headers_check.pl
patching file scripts/kallsyms.c
patching file scripts/mod/file2alias.c
patching file scripts/mod/modpost.c
patching file scripts/package/buildtar
patching file scripts/recordmcount.pl
patching file scripts/trace/power.pl
patching file scripts/tracing/power.pl
patching file security/Kconfig
patching file security/Makefile
patching file security/capability.c
patching file security/device_cgroup.c
patching file security/inode.c
patching file security/integrity/ima/Kconfig
patching file security/integrity/ima/Makefile
patching file security/integrity/ima/ima.h
patching file security/integrity/ima/ima_api.c
patching file security/integrity/ima/ima_audit.c
patching file security/integrity/ima/ima_crypto.c
patching file security/integrity/ima/ima_fs.c
patching file security/integrity/ima/ima_iint.c
patching file security/integrity/ima/ima_init.c
patching file security/integrity/ima/ima_main.c
patching file security/integrity/ima/ima_policy.c
patching file security/integrity/ima/ima_queue.c
patching file security/keys/internal.h
patching file security/keys/key.c
patching file security/keys/keyctl.c
patching file security/keys/keyring.c
patching file security/keys/permission.c
patching file security/keys/proc.c
patching file security/keys/process_keys.c
patching file security/keys/request_key.c
patching file security/security.c
patching file security/selinux/avc.c
patching file security/selinux/hooks.c
patching file security/selinux/include/av_perm_to_string.h
patching file security/selinux/include/av_permissions.h
patching file security/selinux/include/netlabel.h
patching file security/selinux/include/objsec.h
patching file security/selinux/include/security.h
patching file security/selinux/netlabel.c
patching file security/selinux/nlmsgtab.c
patching file security/selinux/selinuxfs.c
patching file security/selinux/ss/services.c
patching file security/smack/smack.h
patching file security/smack/smack_access.c
patching file security/smack/smack_lsm.c
patching file security/smack/smackfs.c
patching file security/tomoyo/Kconfig
patching file security/tomoyo/Makefile
patching file security/tomoyo/common.c
patching file security/tomoyo/common.h
patching file security/tomoyo/domain.c
patching file security/tomoyo/file.c
patching file security/tomoyo/realpath.c
patching file security/tomoyo/realpath.h
patching file security/tomoyo/tomoyo.c
patching file security/tomoyo/tomoyo.h
patching file sound/Kconfig
patching file sound/Makefile
patching file sound/aoa/aoa-gpio.h
patching file sound/aoa/core/alsa.c
patching file sound/aoa/core/gpio-feature.c
patching file sound/aoa/fabrics/layout.c
patching file sound/aoa/soundbus/i2sbus/core.c
patching file sound/arm/Kconfig
patching file sound/arm/Makefile
patching file sound/arm/aaci.c
patching file sound/arm/pxa2xx-ac97-lib.c
patching file sound/arm/pxa2xx-ac97.c
patching file sound/arm/pxa2xx-pcm-lib.c
patching file sound/arm/sa11xx-uda1341.c
patching file sound/atmel/Kconfig
patching file sound/atmel/Makefile
patching file sound/atmel/abdac.c
patching file sound/atmel/ac97c.c
patching file sound/atmel/ac97c.h
patching file sound/core/control.c
patching file sound/core/hwdep.c
patching file sound/core/info.c
patching file sound/core/init.c
patching file sound/core/jack.c
patching file sound/core/misc.c
patching file sound/core/oss/mixer_oss.c
patching file sound/core/oss/pcm_oss.c
patching file sound/core/oss/pcm_plugin.h
patching file sound/core/pcm.c
patching file sound/core/pcm_lib.c
patching file sound/core/pcm_native.c
patching file sound/core/pcm_timer.c
patching file sound/core/rawmidi.c
patching file sound/core/seq/oss/seq_oss_device.h
patching file sound/core/seq/seq_prioq.c
patching file sound/core/timer.c
patching file sound/core/vmaster.c
patching file sound/drivers/Kconfig
patching file sound/drivers/dummy.c
patching file sound/drivers/ml403-ac97cr.c
patching file sound/drivers/mpu401/mpu401.c
patching file sound/drivers/mtpav.c
patching file sound/drivers/mts64.c
patching file sound/drivers/opl3/opl3_lib.c
patching file sound/drivers/opl3/opl3_midi.c
patching file sound/drivers/opl3/opl3_oss.c
patching file sound/drivers/opl3/opl3_synth.c
patching file sound/drivers/pcsp/pcsp.c
patching file sound/drivers/portman2x4.c
patching file sound/drivers/serial-u16550.c
patching file sound/drivers/virmidi.c
patching file sound/drivers/vx/vx_core.c
patching file sound/drivers/vx/vx_hwdep.c
patching file sound/drivers/vx/vx_uer.c
patching file sound/i2c/Makefile
patching file sound/i2c/l3/Makefile
patching file sound/i2c/l3/uda1341.c
patching file sound/i2c/other/tea575x-tuner.c
patching file sound/isa/Kconfig
patching file sound/isa/Makefile
patching file sound/isa/ad1816a/ad1816a.c
patching file sound/isa/ad1816a/ad1816a_lib.c
patching file sound/isa/ad1848/ad1848.c
patching file sound/isa/adlib.c
patching file sound/isa/als100.c
patching file sound/isa/azt2320.c
patching file sound/isa/cmi8330.c
patching file sound/isa/cs423x/Makefile
patching file sound/isa/cs423x/cs4231.c
patching file sound/isa/cs423x/cs4232.c
patching file sound/isa/cs423x/cs4236.c
patching file sound/isa/cs423x/cs4236_lib.c
patching file sound/isa/dt019x.c
patching file sound/isa/es1688/es1688.c
patching file sound/isa/es1688/es1688_lib.c
patching file sound/isa/es18xx.c
patching file sound/isa/gus/gus_dma.c
patching file sound/isa/gus/gus_irq.c
patching file sound/isa/gus/gus_pcm.c
patching file sound/isa/gus/gus_uart.c
patching file sound/isa/gus/gusclassic.c
patching file sound/isa/gus/gusextreme.c
patching file sound/isa/gus/gusmax.c
patching file sound/isa/gus/interwave.c
patching file sound/isa/msnd/Makefile
patching file sound/isa/msnd/msnd.c
patching file sound/isa/msnd/msnd.h
patching file sound/isa/msnd/msnd_classic.c
patching file sound/isa/msnd/msnd_classic.h
patching file sound/isa/msnd/msnd_midi.c
patching file sound/isa/msnd/msnd_pinnacle.c
patching file sound/isa/msnd/msnd_pinnacle.h
patching file sound/isa/msnd/msnd_pinnacle_mixer.c
patching file sound/isa/opl3sa2.c
patching file sound/isa/opti9xx/miro.c
patching file sound/isa/opti9xx/opti92x-ad1848.c
patching file sound/isa/sb/es968.c
patching file sound/isa/sb/sb16.c
patching file sound/isa/sb/sb8.c
patching file sound/isa/sb/sb_mixer.c
patching file sound/isa/sc6000.c
patching file sound/isa/sgalaxy.c
patching file sound/isa/sscape.c
patching file sound/isa/wavefront/wavefront.c
patching file sound/isa/wavefront/wavefront_synth.c
patching file sound/isa/wss/wss_lib.c
patching file sound/mips/au1x00.c
patching file sound/mips/hal2.c
patching file sound/mips/sgio2audio.c
patching file sound/oss/ad1848.c
patching file sound/oss/au1550_ac97.c
patching file sound/oss/audio.c
patching file sound/oss/dmabuf.c
patching file sound/oss/dmasound/dmasound_atari.c
patching file sound/oss/pas2_card.c
patching file sound/oss/pss.c
patching file sound/oss/sequencer.c
patching file sound/oss/sh_dac_audio.c
patching file sound/oss/swarm_cs4297a.c
patching file sound/oss/vwsnd.c
patching file sound/parisc/harmony.c
patching file sound/pci/Kconfig
patching file sound/pci/ac97/ac97_codec.c
patching file sound/pci/ac97/ac97_proc.c
patching file sound/pci/ad1889.c
patching file sound/pci/ak4531_codec.c
patching file sound/pci/ali5451/ali5451.c
patching file sound/pci/als300.c
patching file sound/pci/als4000.c
patching file sound/pci/atiixp.c
patching file sound/pci/atiixp_modem.c
patching file sound/pci/au88x0/au88x0.c
patching file sound/pci/au88x0/au88x0_a3d.c
patching file sound/pci/au88x0/au88x0_core.c
patching file sound/pci/au88x0/au88x0_synth.c
patching file sound/pci/aw2/aw2-alsa.c
patching file sound/pci/azt3328.c
patching file sound/pci/bt87x.c
patching file sound/pci/ca0106/ca0106_main.c
patching file sound/pci/cmipci.c
patching file sound/pci/cs4281.c
patching file sound/pci/cs46xx/cs46xx.c
patching file sound/pci/cs46xx/cs46xx_lib.c
patching file sound/pci/cs46xx/cs46xx_lib.h
patching file sound/pci/cs5530.c
patching file sound/pci/cs5535audio/cs5535audio.c
patching file sound/pci/echoaudio/Makefile
patching file sound/pci/echoaudio/echo3g_dsp.c
patching file sound/pci/echoaudio/echoaudio.c
patching file sound/pci/echoaudio/echoaudio.h
patching file sound/pci/echoaudio/echoaudio_3g.c
patching file sound/pci/echoaudio/echoaudio_dsp.c
patching file sound/pci/echoaudio/echoaudio_dsp.h
patching file sound/pci/echoaudio/gina20_dsp.c
patching file sound/pci/echoaudio/indigo_dsp.c
patching file sound/pci/echoaudio/indigo_express_dsp.c
patching file sound/pci/echoaudio/indigodj_dsp.c
patching file sound/pci/echoaudio/indigodjx.c
patching file sound/pci/echoaudio/indigodjx_dsp.c
patching file sound/pci/echoaudio/indigoio_dsp.c
patching file sound/pci/echoaudio/indigoiox.c
patching file sound/pci/echoaudio/indigoiox_dsp.c
patching file sound/pci/echoaudio/layla20_dsp.c
patching file sound/pci/echoaudio/mia_dsp.c
patching file sound/pci/echoaudio/midi.c
patching file sound/pci/emu10k1/emu10k1.c
patching file sound/pci/emu10k1/emu10k1_callback.c
patching file sound/pci/emu10k1/emu10k1_main.c
patching file sound/pci/emu10k1/emu10k1x.c
patching file sound/pci/emu10k1/emufx.c
patching file sound/pci/emu10k1/emupcm.c
patching file sound/pci/emu10k1/io.c
patching file sound/pci/emu10k1/p16v.c
patching file sound/pci/emu10k1/voice.c
patching file sound/pci/ens1370.c
patching file sound/pci/es1938.c
patching file sound/pci/es1968.c
patching file sound/pci/fm801.c
patching file sound/pci/hda/hda_beep.c
patching file sound/pci/hda/hda_beep.h
patching file sound/pci/hda/hda_codec.c
patching file sound/pci/hda/hda_codec.h
patching file sound/pci/hda/hda_generic.c
patching file sound/pci/hda/hda_hwdep.c
patching file sound/pci/hda/hda_intel.c
patching file sound/pci/hda/hda_local.h
patching file sound/pci/hda/hda_proc.c
patching file sound/pci/hda/patch_analog.c
patching file sound/pci/hda/patch_cmedia.c
patching file sound/pci/hda/patch_conexant.c
patching file sound/pci/hda/patch_realtek.c
patching file sound/pci/hda/patch_sigmatel.c
patching file sound/pci/hda/patch_via.c
patching file sound/pci/ice1712/ice1712.c
patching file sound/pci/ice1712/ice1724.c
patching file sound/pci/ice1712/juli.c
patching file sound/pci/ice1712/prodigy192.c
patching file sound/pci/intel8x0.c
patching file sound/pci/intel8x0m.c
patching file sound/pci/korg1212/korg1212.c
patching file sound/pci/maestro3.c
patching file sound/pci/mixart/mixart.c
patching file sound/pci/mixart/mixart_hwdep.c
patching file sound/pci/nm256/nm256.c
patching file sound/pci/oxygen/hifier.c
patching file sound/pci/oxygen/oxygen.c
patching file sound/pci/oxygen/oxygen.h
patching file sound/pci/oxygen/oxygen_io.c
patching file sound/pci/oxygen/oxygen_lib.c
patching file sound/pci/oxygen/virtuoso.c
patching file sound/pci/pcxhr/pcxhr.c
patching file sound/pci/pcxhr/pcxhr.h
patching file sound/pci/pcxhr/pcxhr_core.h
patching file sound/pci/pcxhr/pcxhr_hwdep.c
patching file sound/pci/pcxhr/pcxhr_mix22.c
patching file sound/pci/pcxhr/pcxhr_mix22.h
patching file sound/pci/pcxhr/pcxhr_mixer.c
patching file sound/pci/riptide/riptide.c
patching file sound/pci/rme32.c
patching file sound/pci/rme96.c
patching file sound/pci/rme9652/hdsp.c
patching file sound/pci/rme9652/hdspm.c
patching file sound/pci/rme9652/rme9652.c
patching file sound/pci/sis7019.c
patching file sound/pci/sonicvibes.c
patching file sound/pci/trident/trident.c
patching file sound/pci/trident/trident_main.c
patching file sound/pci/via82xx.c
patching file sound/pci/via82xx_modem.c
patching file sound/pci/vx222/vx222.c
patching file sound/pci/vx222/vx222_ops.c
patching file sound/pci/ymfpci/ymfpci.c
patching file sound/pci/ymfpci/ymfpci_main.c
patching file sound/pcmcia/pdaudiocf/pdaudiocf.c
patching file sound/pcmcia/pdaudiocf/pdaudiocf_core.c
patching file sound/pcmcia/pdaudiocf/pdaudiocf_irq.c
patching file sound/pcmcia/vx/vxpocket.c
patching file sound/ppc/Kconfig
patching file sound/ppc/awacs.c
patching file sound/ppc/burgundy.c
patching file sound/ppc/daca.c
patching file sound/ppc/pmac.c
patching file sound/ppc/powermac.c
patching file sound/ppc/snd_ps3.c
patching file sound/ppc/tumbler.c
patching file sound/sh/Kconfig
patching file sound/sh/aica.c
patching file sound/soc/Kconfig
patching file sound/soc/Makefile
patching file sound/soc/atmel/atmel-pcm.c
patching file sound/soc/atmel/atmel_ssc_dai.c
patching file sound/soc/atmel/playpaq_wm8510.c
patching file sound/soc/atmel/sam9g20_wm8731.c
patching file sound/soc/au1x/dbdma2.c
patching file sound/soc/au1x/psc-ac97.c
patching file sound/soc/au1x/psc-i2s.c
patching file sound/soc/blackfin/Kconfig
patching file sound/soc/blackfin/bf5xx-ac97-pcm.c
patching file sound/soc/blackfin/bf5xx-ac97.c
patching file sound/soc/blackfin/bf5xx-ad73311.c
patching file sound/soc/blackfin/bf5xx-i2s-pcm.c
patching file sound/soc/blackfin/bf5xx-i2s.c
patching file sound/soc/blackfin/bf5xx-sport.c
patching file sound/soc/codecs/Kconfig
patching file sound/soc/codecs/Makefile
patching file sound/soc/codecs/ac97.c
patching file sound/soc/codecs/ad1980.c
patching file sound/soc/codecs/ad73311.c
patching file sound/soc/codecs/ad73311.h
patching file sound/soc/codecs/ak4104.c
patching file sound/soc/codecs/ak4104.h
patching file sound/soc/codecs/ak4535.c
patching file sound/soc/codecs/cs4270.c
patching file sound/soc/codecs/pcm3008.c
patching file sound/soc/codecs/ssm2602.c
patching file sound/soc/codecs/tlv320aic23.c
patching file sound/soc/codecs/tlv320aic26.c
patching file sound/soc/codecs/tlv320aic3x.c
patching file sound/soc/codecs/twl4030.c
patching file sound/soc/codecs/twl4030.h
patching file sound/soc/codecs/uda134x.c
patching file sound/soc/codecs/uda1380.c
patching file sound/soc/codecs/wm8350.c
patching file sound/soc/codecs/wm8350.h
patching file sound/soc/codecs/wm8400.c
patching file sound/soc/codecs/wm8400.h
patching file sound/soc/codecs/wm8510.c
patching file sound/soc/codecs/wm8580.c
patching file sound/soc/codecs/wm8580.h
patching file sound/soc/codecs/wm8728.c
patching file sound/soc/codecs/wm8731.c
patching file sound/soc/codecs/wm8731.h
patching file sound/soc/codecs/wm8750.c
patching file sound/soc/codecs/wm8753.c
patching file sound/soc/codecs/wm8753.h
patching file sound/soc/codecs/wm8900.c
patching file sound/soc/codecs/wm8903.c
patching file sound/soc/codecs/wm8971.c
patching file sound/soc/codecs/wm8990.c
patching file sound/soc/codecs/wm9705.c
patching file sound/soc/codecs/wm9705.h
patching file sound/soc/codecs/wm9712.c
patching file sound/soc/codecs/wm9713.c
patching file sound/soc/davinci/Kconfig
patching file sound/soc/davinci/davinci-evm.c
patching file sound/soc/davinci/davinci-i2s.c
patching file sound/soc/davinci/davinci-pcm.c
patching file sound/soc/davinci/davinci-sffsdr.c
patching file sound/soc/fsl/Kconfig
patching file sound/soc/fsl/Makefile
patching file sound/soc/fsl/fsl_dma.c
patching file sound/soc/fsl/fsl_ssi.c
patching file sound/soc/fsl/fsl_ssi.h
patching file sound/soc/fsl/mpc5200_psc_i2s.c
patching file sound/soc/fsl/mpc8610_hpcd.c
patching file sound/soc/omap/Kconfig
patching file sound/soc/omap/Makefile
patching file sound/soc/omap/n810.c
patching file sound/soc/omap/omap-mcbsp.c
patching file sound/soc/omap/omap-pcm.c
patching file sound/soc/omap/omap3pandora.c
patching file sound/soc/omap/osk5912.c
patching file sound/soc/omap/sdp3430.c
patching file sound/soc/pxa/Kconfig
patching file sound/soc/pxa/Makefile
patching file sound/soc/pxa/corgi.c
patching file sound/soc/pxa/e740_wm9705.c
patching file sound/soc/pxa/e750_wm9705.c
patching file sound/soc/pxa/e800_wm9712.c
patching file sound/soc/pxa/em-x270.c
patching file sound/soc/pxa/magician.c
patching file sound/soc/pxa/mioa701_wm9713.c
patching file sound/soc/pxa/palm27x.c
patching file sound/soc/pxa/poodle.c
patching file sound/soc/pxa/pxa-ssp.c
patching file sound/soc/pxa/pxa2xx-ac97.c
patching file sound/soc/pxa/pxa2xx-i2s.c
patching file sound/soc/pxa/pxa2xx-pcm.c
patching file sound/soc/pxa/spitz.c
patching file sound/soc/pxa/tosa.c
patching file sound/soc/pxa/zylonite.c
patching file sound/soc/s3c24xx/Kconfig
patching file sound/soc/s3c24xx/Makefile
patching file sound/soc/s3c24xx/jive_wm8750.c
patching file sound/soc/s3c24xx/neo1973_wm8753.c
patching file sound/soc/s3c24xx/s3c-i2s-v2.c
patching file sound/soc/s3c24xx/s3c-i2s-v2.h
patching file sound/soc/s3c24xx/s3c2412-i2s.c
patching file sound/soc/s3c24xx/s3c2412-i2s.h
patching file sound/soc/s3c24xx/s3c2443-ac97.c
patching file sound/soc/s3c24xx/s3c24xx-i2s.c
patching file sound/soc/s3c24xx/s3c24xx-pcm.c
patching file sound/soc/s3c24xx/s3c24xx_uda134x.c
patching file sound/soc/s3c24xx/s3c64xx-i2s.c
patching file sound/soc/s3c24xx/s3c64xx-i2s.h
patching file sound/soc/sh/hac.c
patching file sound/soc/sh/ssi.c
patching file sound/soc/soc-core.c
patching file sound/soc/soc-dapm.c
patching file sound/soc/soc-jack.c
patching file sound/sparc/amd7930.c
patching file sound/sparc/cs4231.c
patching file sound/sparc/dbri.c
patching file sound/spi/at73c213.c
patching file sound/synth/emux/emux_hwdep.c
patching file sound/synth/emux/emux_oss.c
patching file sound/synth/emux/emux_seq.c
patching file sound/synth/emux/emux_synth.c
patching file sound/synth/emux/soundfont.c
patching file sound/usb/Kconfig
patching file sound/usb/caiaq/caiaq-audio.c
patching file sound/usb/caiaq/caiaq-control.c
patching file sound/usb/caiaq/caiaq-device.c
patching file sound/usb/caiaq/caiaq-device.h
patching file sound/usb/usbaudio.c
patching file sound/usb/usbmixer.c
patching file sound/usb/usbmixer_maps.c
patching file sound/usb/usbquirks.h
patching file sound/usb/usx2y/us122l.c
patching file sound/usb/usx2y/usX2Yhwdep.c
patching file sound/usb/usx2y/usb_stream.c
patching file sound/usb/usx2y/usbusx2y.c
patching file sound/usb/usx2y/usx2yhwdeppcm.h
patching file usr/Kconfig
patching file usr/Makefile
patching file usr/initramfs_data.S
patching file usr/initramfs_data.bz2.S
patching file usr/initramfs_data.gz.S
patching file usr/initramfs_data.lzma.S
patching file virt/kvm/ioapic.c
patching file virt/kvm/ioapic.h
patching file virt/kvm/irq_comm.c
patching file virt/kvm/kvm_main.c
==> ERROR: Build Failed.
Aborting...
What am I doing wrong?
Use the Source, Luke!
Offline
You probably want to remove this:
# Add -ARCH patches
# See http://projects.archlinux.org/git/?p=linux-2.6-ARCH.git;a=summary
patch -Np1 -i ${srcdir}/${_patchname} || return 1
These patches will need ported to the new kernel
Offline
What do you mean?
Use the Source, Luke!
Offline
What do you mean?
comment that line first. that pach contains the patch for 2.6.29 (.1) and some patches that archlinux have which aren't that important.
Last edited by wonder (2009-04-09 14:25:02)
Give what you have. To someone, it may be better than you dare to think.
Offline
Just comment out that line. It will build the vanilla kernel (i.e. without any of the few patches used for Arch kernel releases).
Offline
Okay, but don't I need a line to apply the patches for 2.6.30rc1?
Use the Source, Luke!
Offline
If any, yes.
Also, you need to modify all other files related to this package, such as .install script etc. (to reflect kernel name change)
Last edited by Xabre (2009-04-09 14:29:50)
Offline
not if you do not apply any patches, read post above. working arch patches for 2.6.30rc1 do not yet exist.
edit: I am too slow...
Last edited by hokasch (2009-04-09 14:30:21)
Offline
Well I commented the line. Does makepkg automatically extract the tarball with the patches I need for kernel 2.6.30rc1?
Last edited by Roberth (2009-04-09 14:33:15)
Use the Source, Luke!
Offline
_basekernel=2.6.29.1 needs to be changed to 2.6.30-rc1
In sources, ftp://ftp.kernel.org/pub/linux/kernel/v … el.tar.bz2 also to http://kernel.org/pub/linux/kernel/v2.6 … el.tar.bz2
Offline
Oh thanks, but now I get this:
[roberth@Magda kernel26-devel]$ makepkg
==> ERROR: pkgver is not allowed to contain hyphens.
And my PKGBUILD looks like this now:
pkgname=kernel26-devel # Build kernel with a different name
_kernelname=${pkgname#kernel26}
_basekernel=2.6.30-rc1
pkgver=${_basekernel}
pkgrel=1
#_patchname="patch-${pkgver}-rc1"
pkgdesc="The Linux Kernel and modules"
arch=(i686 x86_64)
license=('GPL2')
groups=('base')
url="http://www.kernel.org"
backup=(etc/mkinitcpio.d/${pkgname}.preset)
depends=('coreutils' 'module-init-tools' 'mkinitcpio>=0.5.20')
# pwc, ieee80211 and hostap-driver26 modules are included in kernel26 now
# nforce package support was abandoned by nvidia, kernel modules should cover everything now.
# kernel24 support is dropped since glibc24
replaces=('kernel24' 'kernel24-scsi' 'kernel26-scsi'
'alsa-driver' 'ieee80211' 'hostap-driver26'
'pwc' 'nforce' 'squashfs' 'unionfs' 'ivtv'
'zd1211' 'kvm-modules' 'iwlwifi' 'rt2x00-cvs'
'gspcav1' 'atl2' 'wlan-ng26' 'aufs')
install=kernel26.install
source=(http://kernel.org/pub/linux/kernel/v2.6/testing/linux-$_basekernel.tar.bz2
# the main kernel config files
config config.x86_64
# standard config files for mkinitcpio ramdisk
kernel26.preset)
optdepends=('crda: to set the correct wireless channels of your country')
md5sums=()
build() {
KARCH=x86
cd ${srcdir}/linux-$_basekernel
# Add -ARCH patches
# See http://projects.archlinux.org/git/?p=linux-2.6-ARCH.git;a=summary
#patch -Np1 -i ${srcdir}/${_patchname} || return 1
if [ "$CARCH" = "x86_64" ]; then
cat ../config.x86_64 >./.config
else
cat ../config >./.config
fi
if [ "${_kernelname}" != "" ]; then
sed -i "s|CONFIG_LOCALVERSION=.*|CONFIG_LOCALVERSION=\"${_kernelname}\"|g" ./.config
fi
# get kernel version
make prepare
_kernver="$(make kernelrelease)"
# load configuration
# Configure the kernel. Replace the line below with one of your choice.
#make menuconfig # CLI menu for configuration
#make xconfig # X-based configuration
#make oldconfig # using old config from previous kernel version
# ... or manually edit .config
####################
# stop here
# this is useful to configure the kernel
#msg "Stopping build"
#return 1
####################
yes "" | make config
# build!
make bzImage modules || return 1
mkdir -p ${pkgdir}/{lib/modules,boot}
make INSTALL_MOD_PATH=${pkgdir} modules_install || return 1
cp System.map ${pkgdir}/boot/System.map26${_kernelname}
cp arch/$KARCH/boot/bzImage ${pkgdir}/boot/vmlinuz26${_kernelname}
install -D -m644 Makefile \
${pkgdir}/usr/src/linux-${_kernver}/Makefile
install -D -m644 kernel/Makefile \
${pkgdir}/usr/src/linux-${_kernver}/kernel/Makefile
install -D -m644 .config \
${pkgdir}/usr/src/linux-${_kernver}/.config
mkdir -p ${pkgdir}/usr/src/linux-${_kernver}/include
for i in acpi asm-{generic,x86} config linux math-emu media net pcmcia scsi sound video; do
cp -a include/$i ${pkgdir}/usr/src/linux-${_kernver}/include/
done
# copy arch includes for external modules
mkdir -p ${pkgdir}/usr/src/linux-${_kernver}/arch/x86
cp -a arch/x86/include ${pkgdir}/usr/src/linux-${_kernver}/arch/x86/
# copy files necessary for later builds, like nvidia and vmware
cp Module.symvers ${pkgdir}/usr/src/linux-${_kernver}
cp -a scripts ${pkgdir}/usr/src/linux-${_kernver}
# fix permissions on scripts dir
chmod og-w -R ${pkgdir}/usr/src/linux-${_kernver}/scripts
#mkdir -p ${pkgdir}/usr/src/linux-${_kernver}/.tmp_versions
mkdir -p ${pkgdir}/usr/src/linux-${_kernver}/arch/$KARCH/kernel
cp arch/$KARCH/Makefile ${pkgdir}/usr/src/linux-${_kernver}/arch/$KARCH/
if [ "$CARCH" = "i686" ]; then
cp arch/$KARCH/Makefile_32.cpu ${pkgdir}/usr/src/linux-${_kernver}/arch/$KARCH/
fi
cp arch/$KARCH/kernel/asm-offsets.s ${pkgdir}/usr/src/linux-${_kernver}/arch/$KARCH/kernel/
# add headers for lirc package
mkdir -p ${pkgdir}/usr/src/linux-${_kernver}/drivers/media/video
cp drivers/media/video/*.h ${pkgdir}/usr/src/linux-${_kernver}/drivers/media/video/
for i in bt8xx cpia2 cx25840 cx88 em28xx et61x251 pwc saa7134 sn9c102 usbvideo zc0301; do
mkdir -p ${pkgdir}/usr/src/linux-${_kernver}/drivers/media/video/$i
cp -a drivers/media/video/$i/*.h ${pkgdir}/usr/src/linux-${_kernver}/drivers/media/video/$i
done
# add dm headers
mkdir -p ${pkgdir}/usr/src/linux-${_kernver}/drivers/md
cp drivers/md/*.h ${pkgdir}/usr/src/linux-${_kernver}/drivers/md
# add inotify.h
mkdir -p ${pkgdir}/usr/src/linux-${_kernver}/include/linux
cp include/linux/inotify.h ${pkgdir}/usr/src/linux-${_kernver}/include/linux/
# add CLUSTERIP file for iptables
mkdir -p ${pkgdir}/usr/src/linux-${_kernver}/net/ipv4/netfilter/
# add wireless headers
mkdir -p ${pkgdir}/usr/src/linux-${_kernver}/net/mac80211/
cp net/mac80211/*.h ${pkgdir}/usr/src/linux-${_kernver}/net/mac80211/
# add dvb headers for external modules
# in reference to:
# http://bugs.archlinux.org/task/9912
mkdir -p ${pkgdir}/usr/src/linux-${_kernver}/drivers/media/dvb/dvb-core
cp drivers/media/dvb/dvb-core/*.h ${pkgdir}/usr/src/linux-${_kernver}/drivers/media/dvb/dvb-core/
# add dvb headers for external modules
# in reference to:
# http://bugs.archlinux.org/task/11194
mkdir -p ${pkgdir}/usr/src/linux-${_kernver}/include/config/dvb/
cp include/config/dvb/*.h ${pkgdir}/usr/src/linux-${_kernver}/include/config/dvb/
# add dvb headers for http://mcentral.de/hg/~mrec/em28xx-new
# in reference to:
# http://bugs.archlinux.org/task/13146
mkdir -p ${pkgdir}/usr/src/linux-${_kernver}/drivers/media/dvb/frontends/
cp drivers/media/dvb/frontends/lgdt330x.h ${pkgdir}/usr/src/linux-${_kernver}/drivers/media/dvb/frontends/
cp drivers/media/video/msp3400-driver.h ${pkgdir}/usr/src/linux-${_kernver}/drivers/media/dvb/frontends/
# add xfs and shmem for aufs building
mkdir -p ${pkgdir}/usr/src/linux-${_kernver}/fs/xfs
mkdir -p ${pkgdir}/usr/src/linux-${_kernver}/mm
cp fs/xfs/xfs_sb.h ${pkgdir}/usr/src/linux-${_kernver}/fs/xfs/xfs_sb.h
# add vmlinux
cp vmlinux ${pkgdir}/usr/src/linux-${_kernver}
# copy in Kconfig files
for i in `find . -name "Kconfig*"`; do
mkdir -p ${pkgdir}/usr/src/linux-${_kernver}/`echo $i | sed 's|/Kconfig.*||'`
cp $i ${pkgdir}/usr/src/linux-${_kernver}/$i
done
cd ${pkgdir}/usr/src/linux-${_kernver}/include && ln -s asm-$KARCH asm
chown -R root.root ${pkgdir}/usr/src/linux-${_kernver}
find ${pkgdir}/usr/src/linux-${_kernver} -type d -exec chmod 755 {} \;
cd ${pkgdir}/lib/modules/${_kernver} && \
(rm -f source build; ln -sf ../../../usr/src/linux-${_kernver} build)
# install fallback mkinitcpio.conf file and preset file for kernel
install -m644 -D ${srcdir}/kernel26.preset ${pkgdir}/etc/mkinitcpio.d/${pkgname}.preset || return 1
# set correct depmod command for install
sed \
-e "s/KERNEL_NAME=.*/KERNEL_NAME=${_kernelname}/g" \
-e "s/KERNEL_VERSION=.*/KERNEL_VERSION=${_kernver}/g" \
-i $startdir/kernel26.install
sed \
-e "s|source .*|source /etc/mkinitcpio.d/kernel26${_kernelname}.kver|g" \
-e "s|default_image=.*|default_image=\"/boot/${pkgname}.img\"|g" \
-e "s|fallback_image=.*|fallback_image=\"/boot/${pkgname}-fallback.img\"|g" \
-i ${pkgdir}/etc/mkinitcpio.d/${pkgname}.preset
echo -e "# DO NOT EDIT THIS FILE\nALL_kver='${_kernver}'" > ${startdir}/pkg/etc/mkinitcpio.d/${pkgname}.kver
# remove unneeded architectures
rm -rf ${pkgdir}/usr/src/linux-${_kernver}/arch/{alpha,arm,arm26,avr32,blackfin,cris,frv,h8300,ia64,m32r,m68k,m68knommu,mips,mn10300,parisc,powerpc,ppc,s390,sh,sh64,sparc,sparc64,um,v850,xtensa}
# remove the firmware
rm -rf ${pkgdir}/lib/firmware
}
How do I define _basekernel correctly?
Last edited by Roberth (2009-04-09 14:58:05)
Use the Source, Luke!
Offline
_basekernel is a simple variable so you don't have to repeat version all the time in the file, instead you use $_basekernel
Also, original pkgbuild has:
install=kernel26.install
source=(ftp://ftp.kernel.org/pub/linux/kernel/v2.6/linux-$_basekernel.tar.bz2
ftp://ftp.archlinux.org/other/kernel26/ … hname}.bz2
# the main kernel config files
config config.x86_64
# standard config files for mkinitcpio ramdisk
kernel26.preset)
you need all those files except arch patch (ftp://ftp.archlinux.org/other/kernel26/ … hname}.bz2)
also, if u change kernel name, you need to change it in kernel26.install also (including file name of "kernel26.install" )
Offline
Thats doesn't solve my issue, since I can't use "2.6.30-rc1" in pkgver.
Use the Source, Luke!
Offline
i think we all was thinking that there is a full source arhive. 2.6.30 rc 1 is a patch that need to be applied over 2.6.29.
Give what you have. To someone, it may be better than you dare to think.
Offline
Well, when you see $_basekernel just replace it with 2.6.30-rc1, i.e.
http://kernel.org/pub/linux/kernel/v2.6/testing/linux-$_basekernel.tar.bz2
substitute with
http://kernel.org/pub/linux/kernel/v2.6/testing/linux-2.6.30-rc1.tar.bz2
Offline
@wonder
57Mb size patch ?
Offline
@Xabre i was talking about: http://kernel.org/pub/linux/kernel/v2.6 … 30-rc1.bz2 and have a patch baseline http://kernel.org/pub/linux/kernel/v2.6 … 29.tar.bz2 conform kernel.org. but i see that you have found full source for that kernel.
Give what you have. To someone, it may be better than you dare to think.
Offline