echo "make in linux source directory failed, do you have write permission?"
exit $?
fi
-cd ${topdir}
-mv $FLAGDIR/flags .buildvars
+mv ${FLAGDIR}/flags .buildvars
if (( $LINUX_VERSION_CODE >= 0x00020300 ));then
.PHONY: flags
flags:
echo LINUXDIR=$(LINUXDIR) >$(obj)/flags
- echo MODVERSIONS_H_PATH=$(LINUXDIR)/include/config/modversions.h >$(obj)/flags
+ echo MODVERSIONS_H_PATH=$(LINUXDIR)/include/config/modversions.h >>$(obj)/flags
echo ARCH=$(ARCH) >>$(obj)/flags
- echo AFLAGS="$(AFLAGS)" >>$(obj)/flags
+ echo AFLAGS="$(AFLAGS)" | sed 's_Iinclude_I"$(LINUXDIR)/include"_g'>>$(obj)/flags
echo LDFLAGS= >>$(obj)/flags
echo ARFLAGS="$(ARFLAGS)" >>$(obj)/flags
echo CROSS_COMPILE="$(CROSS_COMPILE)" >>$(obj)/flags
modules:
echo LINUXDIR=$(LINUXDIR) >flags
- echo MODVERSIONS_H_PATH=$(LINUXDIR)/include/linux/modversions.h >flags
+ echo MODVERSIONS_H_PATH=$(LINUXDIR)/include/linux/modversions.h >>flags
echo ARCH=$(ARCH) >>flags
echo AFLAGS="$(AFLAGS)" >>flags
echo LDFLAGS="$(LDFLAGS)" >>flags