]> git.openfabrics.org - ~emulex/compat-rdma.git/commitdiff
makefile: Get rid of file not present errors
authorVladimir Sokolovsky <vlad@mellanox.com>
Fri, 23 Mar 2012 19:38:10 +0000 (21:38 +0200)
committerVladimir Sokolovsky <vlad@mellanox.com>
Fri, 23 Mar 2012 20:36:56 +0000 (22:36 +0200)
Redirect kconfig.h/autoconf.h file not present error to /dev/null

Signed-off-by: Vladimir Sokolovsky <vlad@mellanox.com>
makefile

index 40f16d1013fe1a1cffeb0dc9eed9b0cd5c8120c4..820a7e813e7aac879738b2f5fef62b13f19b597d 100644 (file)
--- a/makefile
+++ b/makefile
@@ -41,8 +41,8 @@ all: kernel
 install: install_kernel
 install_kernel: install_modules
 
-autoconf_h=$(shell /bin/ls -1 $(KSRC)/include/*/autoconf.h | head -1)
-kconfig_h=$(shell /bin/ls -1 $(KSRC)/include/*/kconfig.h | head -1)
+autoconf_h=$(shell /bin/ls -1 $(KSRC)/include/*/autoconf.h 2> /dev/null | head -1)
+kconfig_h=$(shell /bin/ls -1 $(KSRC)/include/*/kconfig.h 2> /dev/null | head -1)
 
 ifneq ($(kconfig_h),)
 KCONFIG_H = -include $(kconfig_h)