Build fails on Using external build dir KBUILD_OUTPUT Reproducible: Always Steps to Reproduce: 1. Build Kernel with make O=external dir 2. export KBUILD_OUTPUT 3. emerge madwifi-driver Actual Results: >>> emerge (1 of 1) net-wireless/madwifi-driver-0.1_pre20050224 to / * Determining the location of the kernel source code * Found kernel source directory: * /usr/src/linux * Found kernel object directory: * /usr/src/bin.sung * Found sources for kernel version: * 2.6.11 * Converting madwifi/ath/Makefile to use M= instead of SUBDIRS=... ... * Preparing ath_hal module ../Makefile.inc:120: *** KERNELCONF: //usr/src/linux/.config does not exist.. Schluss. !!! ERROR: net-wireless/madwifi-driver-0.1_pre20050224 failed. !!! Function linux-mod_src_compile, Line 417, Exitcode 2 !!! Unable to make KERNELPATH=//usr/src/linux KERNELRELEASE=2.6.11 TARGET=i386-elf TOOLPREFIX=/usr/bin/ all. Expected Results: Build Cleanly Portage 2.0.51.19 (default-linux/x86/2004.3, gcc-3.3.5, glibc-2.3.4.20040808-r1, 2.6.11 i686) ================================================================= System uname: 2.6.11 i686 Intel(R) Pentium(R) M processor 1.60GHz Gentoo Base System version 1.4.16 Python: dev-lang/python-2.3.4-r1 [2.3.4 (#1, Mar 4 2005, 20:13:54)] dev-lang/python: 2.3.4-r1 sys-devel/autoconf: 2.13, 2.59-r6 sys-devel/automake: 1.5, 1.8.5-r3, 1.6.3, 1.7.9-r1, 1.4_p6, 1.9.4 sys-devel/binutils: 2.15.92.0.2-r1 sys-devel/libtool: 1.5.10-r4 virtual/os-headers: 2.4.22-r1 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CFLAGS="-O2 -march=i686 -fomit-frame-pointer -pipe " CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/lib/mozilla/defaults/pref /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-O2 -march=i686 -fomit-frame-pointer -pipe " DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs autoconfig ccache distlocks sandbox sfperms" GENTOO_MIRRORS="http://ftp.easynet.nl/mirror/gentoo/ ftp://ftp.easynet.nl/mirror/gentoo/ ftp://planetmirror.com/pub/gentoo/" LANG="de_DE" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/overlays/bmg-main.alternative /usr/local/overlays/bmg-gnome-current.alternative" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="x86 X X509 Xaw3d aalib acl acpi acpi4linux alsa apache2 avi bash-completion bitmap-fonts bzip2 bzlib cdparanoia cdr clamav crypt css curl curlwrappers devmap directfb divx4linux dmx dv dvd dvdr dvdread encode escreen esd ethereal etwin expat fam fbcon gif gimp gimpprint gmp gpm gps graphviz gs gsm gstreamer gtk gtk2 icq ieee1394 image insecure-drivers ipv6 java javascript jp2 jpeg jpeg2k libcaca lm_sensors lzo lzw mmx mmx2 monkey mozdevelop mozilla moznocompose moznoirc moznomail mozp3p mozplaintext mozsvg mozxmlterm mp3 mpeg mpeg2 mpeg4 mpi mplayer msession msn multitarget ncurses network oggvorbis opengl pam pcmcia pcntl perl pg-hier pg-intdatetime pg-vacuumdelay php physfs playlist png pnp portaudio posix postgres postgresql ppds print private python qt readline real recode remote rtc samba sdl serial sockets socks5 spell sse ssl svga szip tcltk tcpd tga theora tiff transparent-proxy truetype truetype-fonts type1 type1-fonts uml uptimed usb v4l v4l2 vcd vcdimager vim-with-x virus-scan vnc wavelan wifi wmf wxwindows xanim xattr xchatdccserver xchattext xinerama xml xml2 xmms xv xvid xvmc zlib" Unset: ASFLAGS, CBUILD, CTARGET, LC_ALL, LDFLAGS
johnm: Is this possible to implement with linux-mod? White: Any idea how to fix it?
gthe problem with this one is here: BUILD_PARAMS="KERNELPATH=${ROOT}${KV_DIR} KERNELRELEASE=${KV_FULL} TARGET=${TARGET} TOOLPREFIX=/usr/bin/" KV_DIR = the srcdir, which is readlink -f /lib/modules/`uname -r`/source for example. this isnt where the Makefile is kept, as the makefile is kept in KV_OUT_DIR KV_OUT_DIR = the objdir, which is readlink -f /lib/modules/`uname -r`/build can you please try changing that to ${KV_OUT_DIR} and testing. if it works, please comment on this bug. I will make the ebuild change now anyways, since it wont hurt for anyone not using KBUILD_OUTPUT