{"id":606,"date":"2024-09-07T17:54:01","date_gmt":"2024-09-07T08:54:01","guid":{"rendered":"https:\/\/txn.myds.me\/blog\/?p=606"},"modified":"2024-09-07T17:54:01","modified_gmt":"2024-09-07T08:54:01","slug":"edk2-%e3%81%ae-emulator-%e3%82%92%e5%8b%95%e3%81%8b%e3%81%99","status":"publish","type":"post","link":"https:\/\/blog.txn.red\/?p=606","title":{"rendered":"edk2 \u306e Emulator \u3092\u52d5\u304b\u3059"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">\u3060\u3044\u3076\u524d\u306b\u8cb7\u3063\u305f Mikan \u672c\u306e OS\u958b\u767a\u3092\u3059\u308b\u306b\u3042\u305f\u308a\u3001edk2 \u74b0\u5883\u3092\u4f5c\u3063\u305f\u3002 \u3068\u308a\u3042\u3048\u305a\u30a8\u30df\u30e5\u30ec\u30fc\u30bf\u3092\u52d5\u304b\u3057\u3066\u307f\u305f\u3002\u672c\u3068\u7570\u306a\u308a edk2 \u306f\u6700\u65b0\u306e\u3082\u306e\u3067\u3084\u3063\u3066\u307f\u308b\u3053\u3068\u306b\u3057\u305f\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">2025-1-28 \u8ffd\u8a18: BaseTools \u3092\u30d3\u30eb\u30c9\u3059\u308b\u5fc5\u8981\u304c\u3042\u3063\u305f\u306e\u3067\u305d\u308c\u3092\u8ffd\u52a0\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u74b0\u5883<br>OS: Liux Mint 22 (upstream: Ubuntu24.02)<br>GCC: 13.2.0<br>edk2 \u306f b437b5C (2024-9-7\u306b\u3053\u306e\u8a18\u4e8b\u306f\u4f5c\u6210\u3057\u3066\u307e\u3059\u3002)<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-plain\"><code>; \u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3068\u30e2\u30b8\u30e5\u30fc\u30eb\u306e\u30a2\u30c3\u30d7\u30c7\u30fc\u30c8\n$ git clone https:\/\/github.com\/tianocore\/edk2\n$ cd edk2\n$ git submodule update --init --recursive\n\n; \u30a8\u30df\u30e5\u30ec\u30fc\u30bf\u3092\u52d5\u304b\u3059\u306b\u306f lixb11-dev \u304c\u5fc5\u8981\u3089\u3057\u3044\n $ sudo apt install libx11-dev\n\n; \u30d3\u30eb\u30c9\n$ source edksetup.sh\n\n; \u307e\u305a\u306f BaseTools \u3092\u30d3\u30eb\u30c9\n$ make -C BaseTools\n\n; \u30a8\u30df\u30e5\u30ec\u30fc\u30bf\u30d3\u30eb\u30c9\n$ build -p EmluatorPkg\/EmulatorPkg.dsc  -t GCC -a X64 \n\n\uff1b \u30a8\u30df\u30e5\u30ec\u30fc\u30bf\u306e\u5b9f\u884c\u3001Host \u304c\u3042\u308b\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3067\u5b9f\u884c\u3059\u308b\u5fc5\u8981\u304c\u3042\u308b\u3002oo\n$ cd Build\/EmulatorX64\/DEBUG_GCC5\/X64\/\n$ .\/Host\n<\/code><\/pre><\/div>\n\n\n\n<p class=\"wp-block-paragraph\">build \u5b9f\u884c\u6642\u306e\u30d1\u30e9\u30e1\u30fc\u30bf\u306f edk2\/Config \u30d5\u30a9\u30eb\u30c0\u306e target.\uff54xt \u306b\u8a18\u8ff0\u3057\u3066\u3082\u3044\u3044\u3002<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-plain\"><code>ACTIVE_PLATFORM    = EmulatorPkg\/EmulatorPkg.dsc\nTARGET_ARCH           = X64\nTOOL_CHAIN_TAG    = GCC<\/code><\/pre><\/div>\n\n\n\n<p class=\"wp-block-paragraph\">TARGET_ARCH \u3084 TOOL_CHAIN_TAG \u306f Conf \u30c7\u30a4\u30ec\u30af\u30c8\u30ea\u306e tools_def.txt \u306b\u4f8b\u304c\u3042\u308b\u306e\u3067\u305d\u3053\u304b\u3089\u53d6\u3063\u3066\u304f\u308b\u3002 \u4ee5\u524d\u307e\u3067\u306f TOOL_CHAIN_TAG \u306b GCC5 \u3092\u6307\u5b9a\u3057\u305f\u3088\u3046\u3060\u304c deprecate \u306a\u306e\u3067 GCC \u3068\u306a\u308b\u3089\u3057\u3044\u3002(EmulatorPkg \u306e Readme.md \u306b\u3042\u308b\u306e\u3060\u304c\u3001GCC \u3067\u306a\u3044\u3068\u30d3\u30eb\u30c9\u3067\u304d\u306a\u3044\u3089\u3057\u3044\u3002clang \u3067\u9811\u5f35\u3063\u3066\u3082\u7121\u99c4\u306a\u306e\u3067\u7d20\u76f4\u306b\u8ae6\u3081\u308b\u3002)<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u5b9f\u884c\u3059\u308b\u306b\u306f\u3001Build \u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306b\u79fb\u52d5\u3059\u308b\u5fc5\u8981\u304c\u3042\u308b\u3088\u3046\u3060\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u516c\u5f0f\u306e\u3084\u308a\u65b9\u306f\u3001 build.sh run \u3068\u304b\u3067\u5b9f\u884c\u3067\u304d\u308b\u3068\u3042\u308b\u304c\u30aa\u30ec\u30ab\u30f3\u3067\u306f\u4f55\u6545\u304b\u5b9f\u884c\u3067\u304d\u306a\u3044\u3088\u3046\u3067\u3059\u3002<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-plain\"><code>$ cd Build\/EmulatorX64\/DEBUG_GCC5\/X64\n$ .\/Host<\/code><\/pre><\/div>\n\n\n\n<p class=\"wp-block-paragraph\">\u5b9f\u884c\u3059\u308b\u3068\u30b3\u30f3\u30bd\u30fc\u30eb\u306e\u753b\u9762\u51fa\u529b\u304c\u304a\u304b\u3057\u304f\u306a\u308b\u306e\u3067\u305d\u3053\u306f\u6ce8\u610f\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u3053\u308c\u304b\u3089 Mikan \u672c\u3092\u306a\u305e\u3063\u3066\u3044\u304f\u304c TOOL_CHAIN_TAG  CLANG\uff18 \u304b\u3089 CLANGDWARF \u306b\u5909\u66f4\u3059\u308b\u3068\u3044\u3044\u3089\u3057\u3044\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u53c2\u8003<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/github.com\/tianocore\/tianocore.github.io\/wiki\/EmulatorPkg\">EmulatorPkg \u00b7 tianocore\/tianocore.github.io Wiki<\/a><br>&#8211; \u3053\u3053\u306b\u3001 Ubuntu \u306e\u4f9d\u5b58\u30e9\u30a4\u30d6\u30e9\u30ea\u306e\u8a18\u8ff0\u3042\u308a\u3001 EmulatorPkg\/build.sh run \u3067\u306f\u52d5\u4f5c\u3057\u306a\u304b\u3063\u305f\u3002 <\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/github.com\/tianocore\/edk2\/tree\/master\/EmulatorPkg\">edk2\/EmulatorPkg at master \u00b7 tianocore\/edk2<\/a><br>&#8211; \u3053\u3053\u306e\u8d77\u52d5\u65b9\u6cd5\u306b\u5f93\u3046\u3068\u3068\u52d5\u4f5c\u3057\u305f\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/github.com\/uchan-nos\/os-from-zero\/issues\/147\">EDK II (\u6700\u65b0\u7248) \u306e\u30c4\u30fc\u30eb\u30c1\u30a7\u30fc\u30f3\u306b\u5927\u5e45\u306a\u4ed5\u69d8\u5909\u66f4\u304c\u5165\u3063\u3066\u3044\u307e\u3059 \u00b7 Issue #147 \u00b7 uchan-nos\/os-from-zero<\/a><br>&#8211; \u3053\u3053\u306b Mikan \u672c\u3067\u306e Toolchain \u306b\u3064\u3044\u3066\u306e\u30a4\u30b7\u30e5\u30fc\u30ec\u30dd\u30fc\u30c8\u304c\u3042\u308b\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u3060\u3044\u3076\u524d\u306b\u8cb7\u3063\u305f Mikan \u672c\u306e OS\u958b\u767a\u3092\u3059\u308b\u306b\u3042\u305f\u308a\u3001edk2 \u74b0\u5883\u3092\u4f5c\u3063\u305f\u3002 \u3068\u308a\u3042\u3048\u305a\u30a8\u30df\u30e5\u30ec\u30fc\u30bf\u3092\u52d5\u304b\u3057\u3066\u307f\u305f\u3002\u672c\u3068\u7570\u306a\u308a edk2 \u306f\u6700\u65b0\u306e\u3082\u306e\u3067\u3084\u3063\u3066\u307f\u308b\u3053\u3068\u306b\u3057\u305f\u3002 2025-1-28 \u8ffd\u8a18: Base [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"iawp_total_views":3,"footnotes":""},"categories":[9],"tags":[8,10],"class_list":["post-606","post","type-post","status-publish","format-standard","hentry","category-dev","tag-linux","tag-mikan"],"_links":{"self":[{"href":"https:\/\/blog.txn.red\/index.php?rest_route=\/wp\/v2\/posts\/606","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.txn.red\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.txn.red\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.txn.red\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.txn.red\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=606"}],"version-history":[{"count":0,"href":"https:\/\/blog.txn.red\/index.php?rest_route=\/wp\/v2\/posts\/606\/revisions"}],"wp:attachment":[{"href":"https:\/\/blog.txn.red\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=606"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.txn.red\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=606"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.txn.red\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=606"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}