From 4c594cbb0484846bf5f5544fb4f47d54bb85e667 Mon Sep 17 00:00:00 2001 From: mjacob Date: Mon, 18 Dec 2006 05:45:23 +0000 Subject: opt_ah.h ends up copied into a kernelcompile directory in some aches as a read-only file. In a number of cases this has led to compiles failing- usually due to some strange NFS drift which thinks that the opt_ah.h in the compile directory is out of date wrt the source it is copied from. When the copy is executed again, it fails because the target is read-only. Oops. Modify the compile hooks avoid this. Discussed with a while back with: Sam Leffler --- sys/conf/files.powerpc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sys/conf/files.powerpc') diff --git a/sys/conf/files.powerpc b/sys/conf/files.powerpc index a60dfd2..b530346 100644 --- a/sys/conf/files.powerpc +++ b/sys/conf/files.powerpc @@ -20,7 +20,7 @@ hal.o optional ath_hal \ no-implicit-rule opt_ah.h optional ath_hal \ dependency "$S/contrib/dev/ath/public/powerpc-be-elf.opt_ah.h" \ - compile-with "cp $S/contrib/dev/ath/public/powerpc-be-elf.opt_ah.h opt_ah.h" \ + compile-with "rm -f opt_ah.h; cp $S/contrib/dev/ath/public/powerpc-be-elf.opt_ah.h opt_ah.h" \ no-obj no-implicit-rule before-depend \ clean "opt_ah.h" # -- cgit v1.1