vireshk

Untitled

Jan 22nd, 2016
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.84 KB | None | 0 0
  1. diff --git a/Makefile b/Makefile
  2. index ef0cbd411470..df40541d1f04 100644
  3. --- a/Makefile
  4. +++ b/Makefile
  5. @@ -96,6 +96,10 @@ tftf: build_bin
  6. --no-hamming-balance \
  7. --start 0x`grep '\bReset_Handler$$' $(NUTTX_BUILDBASE)/image/System.map | cut -d ' ' -f 1`
  8.  
  9. +set_vid_pid:
  10. + echo "CONFIG_ARA_MODULE_VID=$(vendor_id)" >> $(BUILDBASE)/config
  11. + echo "CONFIG_ARA_MODULE_PID=$(product_id)" >> $(BUILDBASE)/config
  12. +
  13. tftf_mkoutput:
  14. echo "creating tftf output directory: $(TFTFDIR)"
  15. mkdir -p $(TFTFDIR)
  16. @@ -104,7 +108,7 @@ cp_source: tftf_mkoutput
  17. echo "copying module source to build directory: $(BUILDBASE)"
  18. cp -r $(MODULE_PATH)/* $(BUILDBASE)
  19.  
  20. -build_bin: cp_source
  21. +build_bin: cp_source set_vid_pid
  22. echo "starting firmware build"
  23. $(SCRIPTPATH)/build.sh
Add Comment
Please, Sign In to add comment