[ATM]: fix ATM makefile for out-of-source-tree builds

Signed-off-by: Jan Beulich <jbeulich@novell.com>
Signed-off-by: Chas Williams <chas@cmf.nrl.navy.mil>
Signed-off-by: David S. Miller <davem@davemloft.net>

authored by

Jan Beulich and committed by
David S. Miller
3087e1ff 64a6c7aa

+2 -1
+2 -1
drivers/atm/Makefile
··· 39 fore_200e-objs += fore200e_pca_fw.o 40 # guess the target endianess to choose the right PCA-200E firmware image 41 ifeq ($(CONFIG_ATM_FORE200E_PCA_DEFAULT_FW),y) 42 - CONFIG_ATM_FORE200E_PCA_FW = $(shell if test -n "`$(CC) -E -dM $(src)/../../include/asm/byteorder.h | grep ' __LITTLE_ENDIAN '`"; then echo $(obj)/pca200e.bin; else echo $(obj)/pca200e_ecd.bin2; fi) 43 endif 44 endif 45
··· 39 fore_200e-objs += fore200e_pca_fw.o 40 # guess the target endianess to choose the right PCA-200E firmware image 41 ifeq ($(CONFIG_ATM_FORE200E_PCA_DEFAULT_FW),y) 42 + byteorder.h := include$(if $(patsubst $(srctree),,$(objtree)),2)/asm/byteorder.h 43 + CONFIG_ATM_FORE200E_PCA_FW := $(obj)/pca200e$(if $(shell $(CC) -E -dM $(byteorder.h) | grep ' __LITTLE_ENDIAN '),.bin,_ecd.bin2) 44 endif 45 endif 46