some changes in patches and makefile

We used diff to create patches,so we had to run repo forall -c git reset --hard to clear them.Now,with the new git format-patch,repo sync will automatically clear them:)