{"action":"created","comment":{"url":"https://api.github.com/repos/helena-project/tock/pulls/comments/49908589","id":49908589,"diff_hunk":"@@ -0,0 +1,19 @@\n+ARCH = cortex-m0\n+\n+RUSTC_FLAGS += -C opt-level=3 -Z no-landing-pads\n+RUSTC_FLAGS += --target $(SRC_DIR)chips/$(CHIP)/target.json\n+RUSTC_FLAGS += -Ctarget-cpu=$(ARCH) -C relocation_model=static\n+RUSTC_FLAGS += -g -C no-stack-check\n+\n+CFLAGS += -g -O3 -std=gnu99 -mcpu=$(ARCH) -mthumb -nostdlib -T$(SRC_DIR)chips/$(CHIP)/loader.ld\n+LDFLAGS += -mcpu=$(ARCH) -mthumb\n+LOADER = $(SRC_DIR)chips/$(CHIP)/loader.ld","path":"src/chips/nrf51822/Makefile.mk","position":10,"original_position":10,"commit_id":"8affa076745248fe78b5fd3cc37394321a86125e","original_commit_id":"8affa076745248fe78b5fd3cc37394321a86125e","user":{"login":"phil-levis","id":4306795,"avatar_url":"https://avatars.githubusercontent.com/u/4306795?v=3","gravatar_id":"","url":"https://api.github.com/users/phil-levis","html_url":"https://github.com/phil-levis","followers_url":"https://api.github.com/users/phil-levis/followers","following_url":"https://api.github.com/users/phil-levis/following{/other_user}","gists_url":"https://api.github.com/users/phil-levis/gists{/gist_id}","starred_url":"https://api.github.com/users/phil-levis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/phil-levis/subscriptions","organizations_url":"https://api.github.com/users/phil-levis/orgs","repos_url":"https://api.github.com/users/phil-levis/repos","events_url":"https://api.github.com/users/phil-levis/events{/privacy}","received_events_url":"https://api.github.com/users/phil-levis/received_events","type":"User","site_admin":false},"body":"I'd suggest TOCK_CHIP and TOCK_ARCH; that way you can pull them from environment variables if needed.","created_at":"2016-01-15T21:42:16Z","updated_at":"2016-01-15T21:42:16Z","html_url":"https://github.com/helena-project/tock/pull/17#discussion_r49908589","pull_request_url":"https://api.github.com/repos/helena-project/tock/pulls/17","_links":{"self":{"href":"https://api.github.com/repos/helena-project/tock/pulls/comments/49908589"},"html":{"href":"https://github.com/helena-project/tock/pull/17#discussion_r49908589"},"pull_request":{"href":"https://api.github.com/repos/helena-project/tock/pulls/17"}}},"pull_request":{"url":"https://api.github.com/repos/helena-project/tock/pulls/17","id":56220949,"html_url":"https://github.com/helena-project/tock/pull/17","diff_url":"https://github.com/helena-project/tock/pull/17.diff","patch_url":"https://github.com/helena-project/tock/pull/17.patch","issue_url":"https://api.github.com/repos/helena-project/tock/issues/17","number":17,"state":"closed","locked":false,"title":"Initial support for nRF51822","user":{"login":"lizardo","id":383724,"avatar_url":"https://avatars.githubusercontent.com/u/383724?v=3","gravatar_id":"","url":"https://api.github.com/users/lizardo","html_url":"https://github.com/lizardo","followers_url":"https://api.github.com/users/lizardo/followers","following_url":"https://api.github.com/users/lizardo/following{/other_user}","gists_url":"https://api.github.com/users/lizardo/gists{/gist_id}","starred_url":"https://api.github.com/users/lizardo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lizardo/subscriptions","organizations_url":"https://api.github.com/users/lizardo/orgs","repos_url":"https://api.github.com/users/lizardo/repos","events_url":"https://api.github.com/users/lizardo/events{/privacy}","received_events_url":"https://api.github.com/users/lizardo/received_events","type":"User","site_admin":false},"body":"Add support for the PCA10001 board with the nRF51822 SoC. This initial support contains just the minimal support for the \"blinky\" app to work:\r\n\r\n* Context switching to/from kernel\r\n* GPIO output pins\r\n* Programming using JLink Debugger\r\n","created_at":"2016-01-15T21:01:27Z","updated_at":"2016-01-15T21:42:16Z","closed_at":"2016-01-15T21:36:10Z","merged_at":"2016-01-15T21:36:10Z","merge_commit_sha":"152ea9366b10a44db29720107ed4daed1214f06a","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/helena-project/tock/pulls/17/commits","review_comments_url":"https://api.github.com/repos/helena-project/tock/pulls/17/comments","review_comment_url":"https://api.github.com/repos/helena-project/tock/pulls/comments{/number}","comments_url":"https://api.github.com/repos/helena-project/tock/issues/17/comments","statuses_url":"https://api.github.com/repos/helena-project/tock/statuses/8affa076745248fe78b5fd3cc37394321a86125e","head":{"label":"lizardo:nrf51822_upstream","ref":"nrf51822_upstream","sha":"8affa076745248fe78b5fd3cc37394321a86125e","user":{"login":"lizardo","id":383724,"avatar_url":"https://avatars.githubusercontent.com/u/383724?v=3","gravatar_id":"","url":"https://api.github.com/users/lizardo","html_url":"https://github.com/lizardo","followers_url":"https://api.github.com/users/lizardo/followers","following_url":"https://api.github.com/users/lizardo/following{/other_user}","gists_url":"https://api.github.com/users/lizardo/gists{/gist_id}","starred_url":"https://api.github.com/users/lizardo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lizardo/subscriptions","organizations_url":"https://api.github.com/users/lizardo/orgs","repos_url":"https://api.github.com/users/lizardo/repos","events_url":"https://api.github.com/users/lizardo/events{/privacy}","received_events_url":"https://api.github.com/users/lizardo/received_events","type":"User","site_admin":false},"repo":{"id":40878978,"name":"tock-devel","full_name":"lizardo/tock-devel","owner":{"login":"lizardo","id":383724,"avatar_url":"https://avatars.githubusercontent.com/u/383724?v=3","gravatar_id":"","url":"https://api.github.com/users/lizardo","html_url":"https://github.com/lizardo","followers_url":"https://api.github.com/users/lizardo/followers","following_url":"https://api.github.com/users/lizardo/following{/other_user}","gists_url":"https://api.github.com/users/lizardo/gists{/gist_id}","starred_url":"https://api.github.com/users/lizardo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lizardo/subscriptions","organizations_url":"https://api.github.com/users/lizardo/orgs","repos_url":"https://api.github.com/users/lizardo/repos","events_url":"https://api.github.com/users/lizardo/events{/privacy}","received_events_url":"https://api.github.com/users/lizardo/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/lizardo/tock-devel","description":"My development tree for the Tock OS.","fork":true,"url":"https://api.github.com/repos/lizardo/tock-devel","forks_url":"https://api.github.com/repos/lizardo/tock-devel/forks","keys_url":"https://api.github.com/repos/lizardo/tock-devel/keys{/key_id}","collaborators_url":"https://api.github.com/repos/lizardo/tock-devel/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/lizardo/tock-devel/teams","hooks_url":"https://api.github.com/repos/lizardo/tock-devel/hooks","issue_events_url":"https://api.github.com/repos/lizardo/tock-devel/issues/events{/number}","events_url":"https://api.github.com/repos/lizardo/tock-devel/events","assignees_url":"https://api.github.com/repos/lizardo/tock-devel/assignees{/user}","branches_url":"https://api.github.com/repos/lizardo/tock-devel/branches{/branch}","tags_url":"https://api.github.com/repos/lizardo/tock-devel/tags","blobs_url":"https://api.github.com/repos/lizardo/tock-devel/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/lizardo/tock-devel/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/lizardo/tock-devel/git/refs{/sha}","trees_url":"https://api.github.com/repos/lizardo/tock-devel/git/trees{/sha}","statuses_url":"https://api.github.com/repos/lizardo/tock-devel/statuses/{sha}","languages_url":"https://api.github.com/repos/lizardo/tock-devel/languages","stargazers_url":"https://api.github.com/repos/lizardo/tock-devel/stargazers","contributors_url":"https://api.github.com/repos/lizardo/tock-devel/contributors","subscribers_url":"https://api.github.com/repos/lizardo/tock-devel/subscribers","subscription_url":"https://api.github.com/repos/lizardo/tock-devel/subscription","commits_url":"https://api.github.com/repos/lizardo/tock-devel/commits{/sha}","git_commits_url":"https://api.github.com/repos/lizardo/tock-devel/git/commits{/sha}","comments_url":"https://api.github.com/repos/lizardo/tock-devel/comments{/number}","issue_comment_url":"https://api.github.com/repos/lizardo/tock-devel/issues/comments{/number}","contents_url":"https://api.github.com/repos/lizardo/tock-devel/contents/{+path}","compare_url":"https://api.github.com/repos/lizardo/tock-devel/compare/{base}...{head}","merges_url":"https://api.github.com/repos/lizardo/tock-devel/merges","archive_url":"https://api.github.com/repos/lizardo/tock-devel/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/lizardo/tock-devel/downloads","issues_url":"https://api.github.com/repos/lizardo/tock-devel/issues{/number}","pulls_url":"https://api.github.com/repos/lizardo/tock-devel/pulls{/number}","milestones_url":"https://api.github.com/repos/lizardo/tock-devel/milestones{/number}","notifications_url":"https://api.github.com/repos/lizardo/tock-devel/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/lizardo/tock-devel/labels{/name}","releases_url":"https://api.github.com/repos/lizardo/tock-devel/releases{/id}","created_at":"2015-08-17T08:49:18Z","updated_at":"2016-01-15T15:32:19Z","pushed_at":"2016-01-15T21:24:08Z","git_url":"git://github.com/lizardo/tock-devel.git","ssh_url":"git@github.com:lizardo/tock-devel.git","clone_url":"https://github.com/lizardo/tock-devel.git","svn_url":"https://github.com/lizardo/tock-devel","homepage":"","size":1586,"stargazers_count":0,"watchers_count":0,"language":"Rust","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"nRF51822"}},"base":{"label":"helena-project:master","ref":"master","sha":"2074ead6935cf942280a0334fd72bb38e15bb558","user":{"login":"helena-project","id":8978731,"avatar_url":"https://avatars.githubusercontent.com/u/8978731?v=3","gravatar_id":"","url":"https://api.github.com/users/helena-project","html_url":"https://github.com/helena-project","followers_url":"https://api.github.com/users/helena-project/followers","following_url":"https://api.github.com/users/helena-project/following{/other_user}","gists_url":"https://api.github.com/users/helena-project/gists{/gist_id}","starred_url":"https://api.github.com/users/helena-project/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/helena-project/subscriptions","organizations_url":"https://api.github.com/users/helena-project/orgs","repos_url":"https://api.github.com/users/helena-project/repos","events_url":"https://api.github.com/users/helena-project/events{/privacy}","received_events_url":"https://api.github.com/users/helena-project/received_events","type":"Organization","site_admin":false},"repo":{"id":36428094,"name":"tock","full_name":"helena-project/tock","owner":{"login":"helena-project","id":8978731,"avatar_url":"https://avatars.githubusercontent.com/u/8978731?v=3","gravatar_id":"","url":"https://api.github.com/users/helena-project","html_url":"https://github.com/helena-project","followers_url":"https://api.github.com/users/helena-project/followers","following_url":"https://api.github.com/users/helena-project/following{/other_user}","gists_url":"https://api.github.com/users/helena-project/gists{/gist_id}","starred_url":"https://api.github.com/users/helena-project/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/helena-project/subscriptions","organizations_url":"https://api.github.com/users/helena-project/orgs","repos_url":"https://api.github.com/users/helena-project/repos","events_url":"https://api.github.com/users/helena-project/events{/privacy}","received_events_url":"https://api.github.com/users/helena-project/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/helena-project/tock","description":"A secure embedded operating system for Cortex-M based microcontrollers","fork":false,"url":"https://api.github.com/repos/helena-project/tock","forks_url":"https://api.github.com/repos/helena-project/tock/forks","keys_url":"https://api.github.com/repos/helena-project/tock/keys{/key_id}","collaborators_url":"https://api.github.com/repos/helena-project/tock/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/helena-project/tock/teams","hooks_url":"https://api.github.com/repos/helena-project/tock/hooks","issue_events_url":"https://api.github.com/repos/helena-project/tock/issues/events{/number}","events_url":"https://api.github.com/repos/helena-project/tock/events","assignees_url":"https://api.github.com/repos/helena-project/tock/assignees{/user}","branches_url":"https://api.github.com/repos/helena-project/tock/branches{/branch}","tags_url":"https://api.github.com/repos/helena-project/tock/tags","blobs_url":"https://api.github.com/repos/helena-project/tock/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/helena-project/tock/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/helena-project/tock/git/refs{/sha}","trees_url":"https://api.github.com/repos/helena-project/tock/git/trees{/sha}","statuses_url":"https://api.github.com/repos/helena-project/tock/statuses/{sha}","languages_url":"https://api.github.com/repos/helena-project/tock/languages","stargazers_url":"https://api.github.com/repos/helena-project/tock/stargazers","contributors_url":"https://api.github.com/repos/helena-project/tock/contributors","subscribers_url":"https://api.github.com/repos/helena-project/tock/subscribers","subscription_url":"https://api.github.com/repos/helena-project/tock/subscription","commits_url":"https://api.github.com/repos/helena-project/tock/commits{/sha}","git_commits_url":"https://api.github.com/repos/helena-project/tock/git/commits{/sha}","comments_url":"https://api.github.com/repos/helena-project/tock/comments{/number}","issue_comment_url":"https://api.github.com/repos/helena-project/tock/issues/comments{/number}","contents_url":"https://api.github.com/repos/helena-project/tock/contents/{+path}","compare_url":"https://api.github.com/repos/helena-project/tock/compare/{base}...{head}","merges_url":"https://api.github.com/repos/helena-project/tock/merges","archive_url":"https://api.github.com/repos/helena-project/tock/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/helena-project/tock/downloads","issues_url":"https://api.github.com/repos/helena-project/tock/issues{/number}","pulls_url":"https://api.github.com/repos/helena-project/tock/pulls{/number}","milestones_url":"https://api.github.com/repos/helena-project/tock/milestones{/number}","notifications_url":"https://api.github.com/repos/helena-project/tock/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/helena-project/tock/labels{/name}","releases_url":"https://api.github.com/repos/helena-project/tock/releases{/id}","created_at":"2015-05-28T09:26:47Z","updated_at":"2016-01-13T22:29:59Z","pushed_at":"2016-01-15T21:36:10Z","git_url":"git://github.com/helena-project/tock.git","ssh_url":"git@github.com:helena-project/tock.git","clone_url":"https://github.com/helena-project/tock.git","svn_url":"https://github.com/helena-project/tock","homepage":"http://www.tockos.org","size":1731,"stargazers_count":21,"watchers_count":21,"language":"Rust","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":4,"mirror_url":null,"open_issues_count":1,"forks":4,"open_issues":1,"watchers":21,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/helena-project/tock/pulls/17"},"html":{"href":"https://github.com/helena-project/tock/pull/17"},"issue":{"href":"https://api.github.com/repos/helena-project/tock/issues/17"},"comments":{"href":"https://api.github.com/repos/helena-project/tock/issues/17/comments"},"review_comments":{"href":"https://api.github.com/repos/helena-project/tock/pulls/17/comments"},"review_comment":{"href":"https://api.github.com/repos/helena-project/tock/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/helena-project/tock/pulls/17/commits"},"statuses":{"href":"https://api.github.com/repos/helena-project/tock/statuses/8affa076745248fe78b5fd3cc37394321a86125e"}}}}