{"id":41,"date":"2023-11-21T20:40:31","date_gmt":"2023-11-21T12:40:31","guid":{"rendered":"https:\/\/www.addsv.com\/?p=41"},"modified":"2023-11-21T20:40:31","modified_gmt":"2023-11-21T12:40:31","slug":"android%e7%bc%96%e8%af%91%e4%b9%8b%e7%bc%96%e8%af%91%e5%8f%af%e6%89%a7%e8%a1%8c%e6%96%87%e4%bb%b6","status":"publish","type":"post","link":"http:\/\/www.addsv.com\/index.php\/2023\/11\/21\/41\/eason\/","title":{"rendered":"Android\u7f16\u8bd1\u4e4b\u7f16\u8bd1\u53ef\u6267\u884c\u6587\u4ef6"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\">Android.bp<\/h2>\n\n\n\n<pre class=\"wp-block-code\"><code>cc_binary {\n    name: \"iwpriv\",\n    vendor: true,\n    srcs: &#91;\n        \"iwpriv.c\",\n        \"iwlib.c\",\n    ],\n    cflags: &#91;\n        \"-D_GNU_SOURCE\",\n        \"-DCONFIG_LIBNL20\",\n\n        \/\/ Silence some warnings for now. Needs to be fixed upstream. b\/26105799\n        \"-Wno-unused-parameter\",\n        \"-Wno-sign-compare\",\n        \"-Wno-format\",\n        \"-Wno-absolute-value\",\n        \"-Wno-enum-conversion\",\n        \"-Wno-self-assign\",\n        \"-Werror\",\n    ],\n    ldflags: &#91;\"-Wl,--no-gc-sections\"],\n    shared_libs: &#91;\"libnl\"],\n}<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u5c06\u6e90\u6587\u4ef6iwpriv.c\u3001iwlib.c\u7f16\u8bd1\u4e3aiwpriv<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>    name: \"iwpriv\",\n    srcs: &#91;\n        \"iwpriv.c\",\n        \"iwlib.c\",\n    ],<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u6587\u4ef6\u9ed8\u8ba4\u751f\u6210\u5230\/vendor\/bin\u76ee\u5f55<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>    vendor: true,<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u6dfb\u52a0\u7f16\u8bd1\u65f6\u7684cflag\uff0c\u5ffd\u7565\u90e8\u5206\u7f16\u8bd1warning<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>    cflags: &#91;\n        \"-D_GNU_SOURCE\",\n        \"-DCONFIG_LIBNL20\",\n\n        \/\/ Silence some warnings for now. Needs to be fixed upstream. b\/26105799\n        \"-Wno-unused-parameter\",\n        \"-Wno-sign-compare\",\n        \"-Wno-format\",\n        \"-Wno-absolute-value\",\n        \"-Wno-enum-conversion\",\n        \"-Wno-self-assign\",\n        \"-Werror\",\n    ],\n    ldflags: &#91;\"-Wl,--no-gc-sections\"],<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u7f16\u8bd1\u4f9d\u8d56\uff0c\u7f16\u8bd1\u65f6\u94fe\u63a5\u5bf9\u5e94\u7684\u5e93\u6587\u4ef6<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>    shared_libs: &#91;\"libnl\"],<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p class=\"qua-blog-post-description\">Android.bp \u5c06\u6e90\u6587\u4ef6iwpriv.c\u3001iwlib.c\u7f16\u8bd1\u4e3aiwpriv \u6587\u4ef6\u9ed8\u8ba4\u751f\u6210\u5230\/vendor<\/p>\n<p class=\"qua-blog-post-description\"><a href=\"http:\/\/www.addsv.com\/index.php\/2023\/11\/21\/41\/eason\/#more-41\" class=\"more-link\">\u9605\u8bfb\u66f4\u591a<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-41","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"http:\/\/www.addsv.com\/index.php\/wp-json\/wp\/v2\/posts\/41","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.addsv.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.addsv.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.addsv.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.addsv.com\/index.php\/wp-json\/wp\/v2\/comments?post=41"}],"version-history":[{"count":2,"href":"http:\/\/www.addsv.com\/index.php\/wp-json\/wp\/v2\/posts\/41\/revisions"}],"predecessor-version":[{"id":43,"href":"http:\/\/www.addsv.com\/index.php\/wp-json\/wp\/v2\/posts\/41\/revisions\/43"}],"wp:attachment":[{"href":"http:\/\/www.addsv.com\/index.php\/wp-json\/wp\/v2\/media?parent=41"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.addsv.com\/index.php\/wp-json\/wp\/v2\/categories?post=41"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.addsv.com\/index.php\/wp-json\/wp\/v2\/tags?post=41"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}