Subject: building netbsd: using a .o as a source?
To: None <tech-kern@netbsd.org>
From: David Young <dyoung@pobox.com>
List: tech-kern
Date: 09/17/2003 20:22:05
I've added these lines to files.i386,

    # Atheros 5210/5211/5212 Hardware Abstraction Layer (HAL)
    include "dev/pci/files.ath"
    file    ../contrib/sys/arch/i386/dev/athhal-elf.o       ath

That yields this line in compile/Makefile,

    athhal-elf.o: $S/../contrib/sys/arch/i386/dev/athhal-elf.o
            ${NORMAL_O}

NORMAL_O is not ordinarily defined. I define it in
sys/conf/Makefile.kern.inc like this,

    NORMAL_O?=      cp $< $@

and cp fails: too few arguments. To debug, I change it to this,

    NORMAL_O?=      echo cp "$<" "$@"

and I see make(1) emit this,

    echo cp "" "athhal-elf.o"
    cp  athhal-elf.o

I cannot figure out why $< evaluates to the empty string. Any ideas?

Dave

-- 
David Young             OJC Technologies
dyoung@ojctech.com      Urbana, IL * (217) 278-3933