)]}'
{
  "commit": "0ff4c2595843917696e62983a9e3764ca637c78e",
  "tree": "cdaf26a51ba0fd0f7c6ae21760634160575fbe3c",
  "parents": [
    "154f32d9ca91ed74c5822261d6abbe873928bf85"
  ],
  "author": {
    "name": "Jukka Rissanen",
    "email": "jukka.rissanen@linux.intel.com",
    "time": "Wed Sep 13 10:43:30 2017 +0300"
  },
  "committer": {
    "name": "Anas Nashif",
    "email": "nashif@linux.intel.com",
    "time": "Mon Sep 18 14:56:16 2017 -0400"
  },
  "message": "build: Add rules in Makefile.gen to generate a hex file\n\nThis commit is useful if there is a need to generate a file\nthat can be included into the application at build time.\nThe file can also be compressed automatically when embedding it.\n\nFiles to be generated are listed in\n     generate_inc_file\n     generate_inc_gz_file\nvariables.\n\nHow to use this commit in your application:\n\n1. Add this to your application Makefile\n\n   SRC \u003d $(ZEPHYR_BASE)/\u003cyour-app-dir\u003e/src\n   include $(ZEPHYR_BASE)/scripts/Makefile.gen\n\n2. Add needed binary/other embedded files into src/Makefile\n   to \"generate_inc_file\" or \"generate_inc_gz_file\" variables:\n\n   # List of files that are used to generate a file that can be\n   # included into .c file.\n   generate_inc_file +\u003d \\\n           echo-apps-cert.der \\\n           echo-apps-key.der \\\n           file.bin\n\n   generate_inc_gz_file +\u003d \\\n           index.html\n\n   include $(ZEPHYR_BASE)/scripts/Makefile.gen\n\n3. In the application, do something with the embedded file\n\n   static const unsigned char inc_file[] \u003d {\n   #include \"file.bin.inc\"\n   };\n\n   static const unsigned char gz_inc_file[] \u003d {\n   #include \"index.html.gz.inc\"\n   };\n\nThe generated files in ${SRC}/*.inc are automatically removed\nwhen you do \"make pristine\"\n\nSigned-off-by: Jukka Rissanen \u003cjukka.rissanen@linux.intel.com\u003e\n",
  "tree_diff": [
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "7abab9c851932f2004039a7b4ed42fe42b379d89",
      "new_mode": 33188,
      "new_path": "scripts/Makefile.gen"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "6c7cdfc855205e233f79fa130d5744f7c8cf6af7",
      "new_mode": 33261,
      "new_path": "scripts/file2hex.py"
    }
  ]
}
