{"action":"created","issue":{"url":"https://api.github.com/repos/postmarketOS/pmbootstrap/issues/1307","repository_url":"https://api.github.com/repos/postmarketOS/pmbootstrap","labels_url":"https://api.github.com/repos/postmarketOS/pmbootstrap/issues/1307/labels{/name}","comments_url":"https://api.github.com/repos/postmarketOS/pmbootstrap/issues/1307/comments","events_url":"https://api.github.com/repos/postmarketOS/pmbootstrap/issues/1307/events","html_url":"https://github.com/postmarketOS/pmbootstrap/issues/1307","id":303663817,"number":1307,"title":"need help with aport for LG K7","user":{"login":"rhetr","id":4017049,"avatar_url":"https://avatars0.githubusercontent.com/u/4017049?v=4","gravatar_id":"","url":"https://api.github.com/users/rhetr","html_url":"https://github.com/rhetr","followers_url":"https://api.github.com/users/rhetr/followers","following_url":"https://api.github.com/users/rhetr/following{/other_user}","gists_url":"https://api.github.com/users/rhetr/gists{/gist_id}","starred_url":"https://api.github.com/users/rhetr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rhetr/subscriptions","organizations_url":"https://api.github.com/users/rhetr/orgs","repos_url":"https://api.github.com/users/rhetr/repos","events_url":"https://api.github.com/users/rhetr/events{/privacy}","received_events_url":"https://api.github.com/users/rhetr/received_events","type":"User","site_admin":false},"labels":[{"id":613960558,"url":"https://api.github.com/repos/postmarketOS/pmbootstrap/labels/help%20wanted","name":"help wanted","color":"128A0C","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-03-08T22:59:33Z","updated_at":"2018-03-09T22:51:45Z","closed_at":null,"author_association":"NONE","body":"\r\nI'm trying to port pmOS to an LG-K330 (AT&T LG-K7), which I believe is codenamed m1 (I think it has the same kernel as the MetroPCS variant MS330).\r\n\r\nI found kernel source [here](https://github.com/TheOddTaco/android_kernel_lge_msm8909), removed the default patches added by pmbootstrap and added `00_fix_return_address.patch` which I got from other aports I was able to  menuconfig and kconfig, but I'm unable to successfully build. I keep getting these errors:\r\n\r\n```\r\ndrivers/soc/qcom/lge/lge_boot_mode.c:197:9: error: 'LGEUSB_FACTORY_56K' undeclared (first use in this function)\r\n   res = LGEUSB_FACTORY_56K;\r\n...\r\ndrivers/soc/qcom/lge/lge_boot_mode.c:218:8: error: variable 'lge_android_usb_pdata' has initializer but incomplete type\r\n struct lge_android_usb_platform_data lge_android_usb_pdata = {\r\n```\r\nI'm getting the same issue with `LGEUSB_FACTORY_130K / 910K`.  I looked and `LGEUSB_FACTORY_56K` and `lge_android_usb_platform_data` are both defined in [include/linux/platform_data/lge_android_usb.h](https://github.com/TheOddTaco/android_kernel_lge_msm8909/blob/017ab2a9067360f82d660dab7b08ce7e277c1cdb/include/linux/platform_data/lge_android_usb.h), is the header just not being included or something?\r\n\r\nI get a similar error for `platform_device`, which is defined in [include/linux/platform_device.h](https://github.com/TheOddTaco/android_kernel_lge_msm8909/blob/017ab2a9067360f82d660dab7b08ce7e277c1cdb/include/linux/platform_device.h):\r\n\r\n```\r\ndrivers/soc/qcom/lge/lge_boot_mode.c:228:8: error: variable 'lge_android_usb_device' has initializer but incomplete type\r\n struct platform_device lge_android_usb_device = {\r\n```\r\nThere are more errors that I think are related to the ones I've listed above. I've attached a more complete error log and my APKBUILD.\r\n\r\n[pmbootstrap/log.txt](https://pastebin.com/DfissWZh)\r\n\r\n[APKBUILD](https://pastebin.com/eKHERAMs)"},"comment":{"url":"https://api.github.com/repos/postmarketOS/pmbootstrap/issues/comments/371968123","html_url":"https://github.com/postmarketOS/pmbootstrap/issues/1307#issuecomment-371968123","issue_url":"https://api.github.com/repos/postmarketOS/pmbootstrap/issues/1307","id":371968123,"user":{"login":"rhetr","id":4017049,"avatar_url":"https://avatars0.githubusercontent.com/u/4017049?v=4","gravatar_id":"","url":"https://api.github.com/users/rhetr","html_url":"https://github.com/rhetr","followers_url":"https://api.github.com/users/rhetr/followers","following_url":"https://api.github.com/users/rhetr/following{/other_user}","gists_url":"https://api.github.com/users/rhetr/gists{/gist_id}","starred_url":"https://api.github.com/users/rhetr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rhetr/subscriptions","organizations_url":"https://api.github.com/users/rhetr/orgs","repos_url":"https://api.github.com/users/rhetr/repos","events_url":"https://api.github.com/users/rhetr/events{/privacy}","received_events_url":"https://api.github.com/users/rhetr/received_events","type":"User","site_admin":false},"created_at":"2018-03-09T22:51:45Z","updated_at":"2018-03-09T22:51:45Z","author_association":"NONE","body":"I found in `lge_boot_mode.c` that `include/linux/platform_data/lge_android_usb.h` is included under an ifdef [here](https://github.com/TheOddTaco/android_kernel_lge_msm8909/blob/017ab2a9067360f82d660dab7b08ce7e277c1cdb/drivers/soc/qcom/lge/lge_boot_mode.c#L18) referring to `CONFIG_LGE_USB_G_ANDROID`.\r\n\r\n I looked for this option with `pmbootstrap menuconfig`; the search result said it was listed under `Device Drivers -> USB Support -> USB Gadget Support` and that it also relied on `CONFIG_USB_G_ANDROID` under `Device Drivers -> USB Support -> USB Gadget Support -> USB Gadget Drivers` but I was unable to find either option actually listed. in my actual config file I also couldn't find these options listed so I added them both manually. It seems to continue beyond this point but runs into a couple more errors, I'll provide another update."}}
{"actor":{"display_login":"rhetr"}}