_dinsdale

How to apply a FreeBSD patch

Jul 19th, 2017
219
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1. Given a project structure of:
  2.  
  3. ~/FreeBSD/armv6
  4. /src
  5. /patches
  6. /obj
  7. /otherstuffs
  8.  
  9. and environment variables of
  10.  
  11. setenv BASEDIR `pwd` #~/FreeBSD/armv6
  12. setenv PATCHES $BASEDIR/patches
  13.  
  14.  
  15. To apply the IMX6 Sata patch I would run:
  16.  
  17. cd $BASEDIR/src
  18. patch -p0 <$PATCHES/d11177.diff
Add Comment
Please, Sign In to add comment