{"action":"opened","number":108,"pull_request":{"url":"https://api.github.com/repos/cliffordwolf/icestorm/pulls/108","id":152892631,"html_url":"https://github.com/cliffordwolf/icestorm/pull/108","diff_url":"https://github.com/cliffordwolf/icestorm/pull/108.diff","patch_url":"https://github.com/cliffordwolf/icestorm/pull/108.patch","issue_url":"https://api.github.com/repos/cliffordwolf/icestorm/issues/108","number":108,"state":"open","locked":false,"title":"Better emscripten support","user":{"login":"rqou","id":732574,"avatar_url":"https://avatars1.githubusercontent.com/u/732574?v=4","gravatar_id":"","url":"https://api.github.com/users/rqou","html_url":"https://github.com/rqou","followers_url":"https://api.github.com/users/rqou/followers","following_url":"https://api.github.com/users/rqou/following{/other_user}","gists_url":"https://api.github.com/users/rqou/gists{/gist_id}","starred_url":"https://api.github.com/users/rqou/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rqou/subscriptions","organizations_url":"https://api.github.com/users/rqou/orgs","repos_url":"https://api.github.com/users/rqou/repos","events_url":"https://api.github.com/users/rqou/events{/privacy}","received_events_url":"https://api.github.com/users/rqou/received_events","type":"User","site_admin":false},"body":"The first commit makes the following changes:\r\n* Includes config.mk after defining SUBDIRS so that config.mk can override it (so that emscripten doesn't build iceprog)\r\n* Adds an \"EMCC\" flag to build with emscripten.\r\n* Allows the debug metadata level to be controlled because emscripten does not support `-ggdb`.\r\n* Adds `$(EXE)` in various places\r\n* Adds a hack to the icetime makefile so that it copies over the chipdb files and embeds them into the resulting javascript\r\n\r\nThe second commit modifies all binaries to mount emscripten's NODEFS on `/x` if the resulting javascript is run under nodejs. This is useful for testing so that the resulting javascript can interact with files on the host filesystem. By default, emscripten-compiled output can only access its in-memory virtual filesystem. It also isn't possible to mount additional emscripten filesystems over the root, so as a compromise NODEFS is mounted on `/x`. After this change, it is possible to run commands like\r\n```\r\n$ nodejs icepll/icepll.js -f /x/test.v\r\n$ nodejs icepack/icepack.js /x/in.asc /x/out.bin\r\n```\r\nThis will interact with files `test.v`, `in.asc`, and `out.bin` in the current working directory.","created_at":"2017-11-15T21:41:31Z","updated_at":"2017-11-15T21:41:31Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/cliffordwolf/icestorm/pulls/108/commits","review_comments_url":"https://api.github.com/repos/cliffordwolf/icestorm/pulls/108/comments","review_comment_url":"https://api.github.com/repos/cliffordwolf/icestorm/pulls/comments{/number}","comments_url":"https://api.github.com/repos/cliffordwolf/icestorm/issues/108/comments","statuses_url":"https://api.github.com/repos/cliffordwolf/icestorm/statuses/2eb485bb9fe453ad88bf1f167e1d48a21c2b9f5a","head":{"label":"rqou:master","ref":"master","sha":"2eb485bb9fe453ad88bf1f167e1d48a21c2b9f5a","user":{"login":"rqou","id":732574,"avatar_url":"https://avatars1.githubusercontent.com/u/732574?v=4","gravatar_id":"","url":"https://api.github.com/users/rqou","html_url":"https://github.com/rqou","followers_url":"https://api.github.com/users/rqou/followers","following_url":"https://api.github.com/users/rqou/following{/other_user}","gists_url":"https://api.github.com/users/rqou/gists{/gist_id}","starred_url":"https://api.github.com/users/rqou/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rqou/subscriptions","organizations_url":"https://api.github.com/users/rqou/orgs","repos_url":"https://api.github.com/users/rqou/repos","events_url":"https://api.github.com/users/rqou/events{/privacy}","received_events_url":"https://api.github.com/users/rqou/received_events","type":"User","site_admin":false},"repo":{"id":97433780,"name":"icestorm","full_name":"rqou/icestorm","owner":{"login":"rqou","id":732574,"avatar_url":"https://avatars1.githubusercontent.com/u/732574?v=4","gravatar_id":"","url":"https://api.github.com/users/rqou","html_url":"https://github.com/rqou","followers_url":"https://api.github.com/users/rqou/followers","following_url":"https://api.github.com/users/rqou/following{/other_user}","gists_url":"https://api.github.com/users/rqou/gists{/gist_id}","starred_url":"https://api.github.com/users/rqou/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rqou/subscriptions","organizations_url":"https://api.github.com/users/rqou/orgs","repos_url":"https://api.github.com/users/rqou/repos","events_url":"https://api.github.com/users/rqou/events{/privacy}","received_events_url":"https://api.github.com/users/rqou/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/rqou/icestorm","description":"Project IceStorm - Lattice iCE40 FPGAs Bitstream Documentaion (Reverse Engineered)","fork":true,"url":"https://api.github.com/repos/rqou/icestorm","forks_url":"https://api.github.com/repos/rqou/icestorm/forks","keys_url":"https://api.github.com/repos/rqou/icestorm/keys{/key_id}","collaborators_url":"https://api.github.com/repos/rqou/icestorm/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/rqou/icestorm/teams","hooks_url":"https://api.github.com/repos/rqou/icestorm/hooks","issue_events_url":"https://api.github.com/repos/rqou/icestorm/issues/events{/number}","events_url":"https://api.github.com/repos/rqou/icestorm/events","assignees_url":"https://api.github.com/repos/rqou/icestorm/assignees{/user}","branches_url":"https://api.github.com/repos/rqou/icestorm/branches{/branch}","tags_url":"https://api.github.com/repos/rqou/icestorm/tags","blobs_url":"https://api.github.com/repos/rqou/icestorm/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/rqou/icestorm/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/rqou/icestorm/git/refs{/sha}","trees_url":"https://api.github.com/repos/rqou/icestorm/git/trees{/sha}","statuses_url":"https://api.github.com/repos/rqou/icestorm/statuses/{sha}","languages_url":"https://api.github.com/repos/rqou/icestorm/languages","stargazers_url":"https://api.github.com/repos/rqou/icestorm/stargazers","contributors_url":"https://api.github.com/repos/rqou/icestorm/contributors","subscribers_url":"https://api.github.com/repos/rqou/icestorm/subscribers","subscription_url":"https://api.github.com/repos/rqou/icestorm/subscription","commits_url":"https://api.github.com/repos/rqou/icestorm/commits{/sha}","git_commits_url":"https://api.github.com/repos/rqou/icestorm/git/commits{/sha}","comments_url":"https://api.github.com/repos/rqou/icestorm/comments{/number}","issue_comment_url":"https://api.github.com/repos/rqou/icestorm/issues/comments{/number}","contents_url":"https://api.github.com/repos/rqou/icestorm/contents/{+path}","compare_url":"https://api.github.com/repos/rqou/icestorm/compare/{base}...{head}","merges_url":"https://api.github.com/repos/rqou/icestorm/merges","archive_url":"https://api.github.com/repos/rqou/icestorm/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/rqou/icestorm/downloads","issues_url":"https://api.github.com/repos/rqou/icestorm/issues{/number}","pulls_url":"https://api.github.com/repos/rqou/icestorm/pulls{/number}","milestones_url":"https://api.github.com/repos/rqou/icestorm/milestones{/number}","notifications_url":"https://api.github.com/repos/rqou/icestorm/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/rqou/icestorm/labels{/name}","releases_url":"https://api.github.com/repos/rqou/icestorm/releases{/id}","deployments_url":"https://api.github.com/repos/rqou/icestorm/deployments","created_at":"2017-07-17T04:00:16Z","updated_at":"2017-07-17T04:00:18Z","pushed_at":"2017-11-15T21:32:58Z","git_url":"git://github.com/rqou/icestorm.git","ssh_url":"git@github.com:rqou/icestorm.git","clone_url":"https://github.com/rqou/icestorm.git","svn_url":"https://github.com/rqou/icestorm","homepage":null,"size":1033,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"cliffordwolf:master","ref":"master","sha":"539cf999dd7fe0a837b72af83c4b1c335b6eafe4","user":{"login":"cliffordwolf","id":619764,"avatar_url":"https://avatars3.githubusercontent.com/u/619764?v=4","gravatar_id":"","url":"https://api.github.com/users/cliffordwolf","html_url":"https://github.com/cliffordwolf","followers_url":"https://api.github.com/users/cliffordwolf/followers","following_url":"https://api.github.com/users/cliffordwolf/following{/other_user}","gists_url":"https://api.github.com/users/cliffordwolf/gists{/gist_id}","starred_url":"https://api.github.com/users/cliffordwolf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cliffordwolf/subscriptions","organizations_url":"https://api.github.com/users/cliffordwolf/orgs","repos_url":"https://api.github.com/users/cliffordwolf/repos","events_url":"https://api.github.com/users/cliffordwolf/events{/privacy}","received_events_url":"https://api.github.com/users/cliffordwolf/received_events","type":"User","site_admin":false},"repo":{"id":39295557,"name":"icestorm","full_name":"cliffordwolf/icestorm","owner":{"login":"cliffordwolf","id":619764,"avatar_url":"https://avatars3.githubusercontent.com/u/619764?v=4","gravatar_id":"","url":"https://api.github.com/users/cliffordwolf","html_url":"https://github.com/cliffordwolf","followers_url":"https://api.github.com/users/cliffordwolf/followers","following_url":"https://api.github.com/users/cliffordwolf/following{/other_user}","gists_url":"https://api.github.com/users/cliffordwolf/gists{/gist_id}","starred_url":"https://api.github.com/users/cliffordwolf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cliffordwolf/subscriptions","organizations_url":"https://api.github.com/users/cliffordwolf/orgs","repos_url":"https://api.github.com/users/cliffordwolf/repos","events_url":"https://api.github.com/users/cliffordwolf/events{/privacy}","received_events_url":"https://api.github.com/users/cliffordwolf/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/cliffordwolf/icestorm","description":"Project IceStorm - Lattice iCE40 FPGAs Bitstream Documentaion (Reverse Engineered)","fork":false,"url":"https://api.github.com/repos/cliffordwolf/icestorm","forks_url":"https://api.github.com/repos/cliffordwolf/icestorm/forks","keys_url":"https://api.github.com/repos/cliffordwolf/icestorm/keys{/key_id}","collaborators_url":"https://api.github.com/repos/cliffordwolf/icestorm/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/cliffordwolf/icestorm/teams","hooks_url":"https://api.github.com/repos/cliffordwolf/icestorm/hooks","issue_events_url":"https://api.github.com/repos/cliffordwolf/icestorm/issues/events{/number}","events_url":"https://api.github.com/repos/cliffordwolf/icestorm/events","assignees_url":"https://api.github.com/repos/cliffordwolf/icestorm/assignees{/user}","branches_url":"https://api.github.com/repos/cliffordwolf/icestorm/branches{/branch}","tags_url":"https://api.github.com/repos/cliffordwolf/icestorm/tags","blobs_url":"https://api.github.com/repos/cliffordwolf/icestorm/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/cliffordwolf/icestorm/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/cliffordwolf/icestorm/git/refs{/sha}","trees_url":"https://api.github.com/repos/cliffordwolf/icestorm/git/trees{/sha}","statuses_url":"https://api.github.com/repos/cliffordwolf/icestorm/statuses/{sha}","languages_url":"https://api.github.com/repos/cliffordwolf/icestorm/languages","stargazers_url":"https://api.github.com/repos/cliffordwolf/icestorm/stargazers","contributors_url":"https://api.github.com/repos/cliffordwolf/icestorm/contributors","subscribers_url":"https://api.github.com/repos/cliffordwolf/icestorm/subscribers","subscription_url":"https://api.github.com/repos/cliffordwolf/icestorm/subscription","commits_url":"https://api.github.com/repos/cliffordwolf/icestorm/commits{/sha}","git_commits_url":"https://api.github.com/repos/cliffordwolf/icestorm/git/commits{/sha}","comments_url":"https://api.github.com/repos/cliffordwolf/icestorm/comments{/number}","issue_comment_url":"https://api.github.com/repos/cliffordwolf/icestorm/issues/comments{/number}","contents_url":"https://api.github.com/repos/cliffordwolf/icestorm/contents/{+path}","compare_url":"https://api.github.com/repos/cliffordwolf/icestorm/compare/{base}...{head}","merges_url":"https://api.github.com/repos/cliffordwolf/icestorm/merges","archive_url":"https://api.github.com/repos/cliffordwolf/icestorm/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/cliffordwolf/icestorm/downloads","issues_url":"https://api.github.com/repos/cliffordwolf/icestorm/issues{/number}","pulls_url":"https://api.github.com/repos/cliffordwolf/icestorm/pulls{/number}","milestones_url":"https://api.github.com/repos/cliffordwolf/icestorm/milestones{/number}","notifications_url":"https://api.github.com/repos/cliffordwolf/icestorm/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/cliffordwolf/icestorm/labels{/name}","releases_url":"https://api.github.com/repos/cliffordwolf/icestorm/releases{/id}","deployments_url":"https://api.github.com/repos/cliffordwolf/icestorm/deployments","created_at":"2015-07-18T11:03:32Z","updated_at":"2017-11-15T02:57:47Z","pushed_at":"2017-11-14T18:08:48Z","git_url":"git://github.com/cliffordwolf/icestorm.git","ssh_url":"git@github.com:cliffordwolf/icestorm.git","clone_url":"https://github.com/cliffordwolf/icestorm.git","svn_url":"https://github.com/cliffordwolf/icestorm","homepage":null,"size":1326,"stargazers_count":259,"watchers_count":259,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":72,"mirror_url":null,"archived":false,"open_issues_count":7,"forks":72,"open_issues":7,"watchers":259,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/cliffordwolf/icestorm/pulls/108"},"html":{"href":"https://github.com/cliffordwolf/icestorm/pull/108"},"issue":{"href":"https://api.github.com/repos/cliffordwolf/icestorm/issues/108"},"comments":{"href":"https://api.github.com/repos/cliffordwolf/icestorm/issues/108/comments"},"review_comments":{"href":"https://api.github.com/repos/cliffordwolf/icestorm/pulls/108/comments"},"review_comment":{"href":"https://api.github.com/repos/cliffordwolf/icestorm/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/cliffordwolf/icestorm/pulls/108/commits"},"statuses":{"href":"https://api.github.com/repos/cliffordwolf/icestorm/statuses/2eb485bb9fe453ad88bf1f167e1d48a21c2b9f5a"}},"author_association":"CONTRIBUTOR","merged":false,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"maintainer_can_modify":true,"commits":2,"additions":113,"deletions":12,"changed_files":12}}
{"actor":{"display_login":"rqou"}}