From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wr1-f43.google.com (mail-wr1-f43.google.com [209.85.221.43]) by mx.groups.io with SMTP id smtpd.web11.905.1663104721594053990 for ; Tue, 13 Sep 2022 14:32:01 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@gmail.com header.s=20210112 header.b=l1LvErse; spf=pass (domain: gmail.com, ip: 209.85.221.43, mailfrom: theojehl76@gmail.com) Received: by mail-wr1-f43.google.com with SMTP id t7so22715428wrm.10 for ; Tue, 13 Sep 2022 14:32:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date; bh=ivVTgsLoQlSxGGd+kJc+CCXBYBZ8o4vc3jz1jzR4rm4=; b=l1LvErse2WV3AME0viH7D6eOrxiq+Vc1MDmMuZy1b8/gxVbllFPBckZ2H4xm0cR2D2 4y4GaDNyzlOPAsuGojPhzm0TbVKoQh78x/6HYodGO2qTGfzdGAeqPMYiKdL8/dZLkohp eFIJGbXB1BTzeRY9dc6evVc772vNJRNyr2ucdb7C8DJAj8pJdJxRGw6NkO46A37GX+Nx If5KJSkTb/739vS/uAg8U+0quhaG8cyhWek2EQsS/TaOm/hTwIc13New/+/uK6Im8Ijk cxLoS40yfjWsEMHrLwYlO71RMYHIYF78WLpbndZpcHqrbKvv23nSgbeloiNvuqCWo+Zk TQdw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date; bh=ivVTgsLoQlSxGGd+kJc+CCXBYBZ8o4vc3jz1jzR4rm4=; b=Rm+NdDn+cR4dvBqeB92NH9h8og7kd4XV3N+p+Gn+0XMiz6MccCOgcDWO2sUn3OzIpl CoqbyqC4Hxq4szD06W/e66cdwOspKP0Q5uvckhop29ceBm7oVle/F+wm644LaCZd4jLb jGeag+9/3ZC1kKuZlE8/Q/14peah82X7FFphEvIXpXAmbltdLgSkyTFXEBXYMYY/jzNx /MTo4xdA+Rj8ImAo67vB/rG6obbqqTnMAjLiO5i1Tkrdq2LDKHuNyVw17ArqOjJTiIAd 7XC2Lc+0ijjZQhOMAhDfVvTu2Ac05DdrkUcHDEWrh3elne3X93rI2/wf6iRGGpXhmyQN L2UA== X-Gm-Message-State: ACgBeo2LIzztpIdEV4idHZiWwlcaAHnUtiSmMAtL+WQgE9DIphTmFDTE aeH2dhc4uTSX7I3nra2/RWnAZlS71fbpO6jG X-Google-Smtp-Source: AA6agR5siwCNy+eIFhR2zwjc0lGKkZ5XwRvW1Zzl7djmqjiHZUcXB6toHI/zdHFZ6TR1qh1dYIYlLA== X-Received: by 2002:adf:fb05:0:b0:228:6463:b15d with SMTP id c5-20020adffb05000000b002286463b15dmr19870751wrr.534.1663104719680; Tue, 13 Sep 2022 14:31:59 -0700 (PDT) Return-Path: Received: from localhost.localdomain (eth-east-parth2-46-193-66-249.wb.wifirst.net. [46.193.66.249]) by smtp.gmail.com with ESMTPSA id x4-20020a05600c188400b003a3170a7af9sm14139734wmp.4.2022.09.13.14.31.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 13 Sep 2022 14:31:58 -0700 (PDT) From: =?UTF-8?B?VGjDqW8gSmVobA==?= To: devel@edk2.groups.io Cc: Leif Lindholm , Michael D Kinney , Isaac Oram , Pedro Falcato , Gerd Hoffmann , Stefan Hajnoczi Subject: [edk2-devel][edk2-platforms][PATCH V3 0/4] QemuOpenBoardPkg: Add QemuOpenBoardPkg Date: Tue, 13 Sep 2022 23:31:53 +0200 Message-Id: X-Mailer: git-send-email 2.37.0 (Apple Git-136) MIME-Version: 1.0 Content-Transfer-Encoding: 8bit QemuOpenBoardPkg adds a MinPlatform port to Qemu x86_64 It can boots UEFI Linux and Windows, and works on PIIX4 and Q35 This board port provides a simple starting place for investigating edk2 and MinPlatform Arch. Currently we implement up to stage 4 of the MinPlatform spec and can boot Windows/Linux. V2 splits the package into several commits. Each commit corresponding to a MinPlatform architecture stage. The V3 removes specials characters in "Theo" from file headers. Cleaned up whitespace, punctuation, commenting to better match coding style and conventions Fixed Visual Studio build issue converting UINT64 to UINT32. Fixed build issues related to sync with latest master. Cc: Leif Lindholm Cc: Michael D Kinney Cc: Isaac Oram Cc: Pedro Falcato Cc: Gerd Hoffmann Cc: Stefan Hajnoczi Signed-off-by: Theo Jehl Theo Jehl (4): QemuOpenBoardPkg: Add QemuOpenBoardPkg QemuOpenBoardPkg: Enable stage 2 QemuOpenBoardPkg: Enable stage 3 QemuOpenBoardPkg: Enable stage 4 .../QemuOpenBoardPkg/QemuOpenBoardPkg.dec | 33 ++ .../Include/Dsc/Stage1.dsc.inc | 55 +++ .../Include/Dsc/Stage2.dsc.inc | 31 ++ .../Include/Dsc/Stage3.dsc.inc | 101 ++++++ .../Include/Dsc/Stage4.dsc.inc | 56 +++ .../QemuOpenBoardPkg/QemuOpenBoardPkg.dsc | 169 +++++++++ .../QemuOpenBoardPkg/QemuOpenBoardPkg.fdf | 328 ++++++++++++++++++ .../BoardBootManagerLib.inf | 39 +++ .../Library/BoardInitLib/BoardInitLib.inf | 29 ++ .../Library/PeiReportFvLib/PeiReportFvLib.inf | 63 ++++ .../Library/PlatformSecLib/PlatformSecLib.inf | 49 +++ .../QemuOpenFwCfgLib/QemuOpenFwCfgLib.inf | 23 ++ .../PlatformInitPei/PlatformInitPei.inf | 59 ++++ .../Include/Library/QemuOpenFwCfgLib.h | 105 ++++++ .../PlatformInitPei/PlatformInit.h | 59 ++++ .../BoardBootManagerLib/BoardBootManager.c | 105 ++++++ .../Library/BoardInitLib/BoardInitLib.c | 231 ++++++++++++ .../Library/PeiReportFvLib/PeiReportFvLib.c | 285 +++++++++++++++ .../Library/PlatformSecLib/PlatformSecLib.c | 140 ++++++++ .../QemuOpenFwCfgLib/QemuOpenFwCfgLib.c | 136 ++++++++ .../QemuOpenBoardPkg/PlatformInitPei/Cpu.c | 64 ++++ .../QemuOpenBoardPkg/PlatformInitPei/Memory.c | 254 ++++++++++++++ .../QemuOpenBoardPkg/PlatformInitPei/Pci.c | 70 ++++ .../QemuOpenBoardPkg/PlatformInitPei/Pcie.c | 106 ++++++ .../PlatformInitPei/PlatformInit.c | 75 ++++ .../Include/Fdf/FlashMap.fdf.inc | 94 +++++ .../Library/PlatformSecLib/Ia32/SecEntry.nasm | 117 +++++++ Platform/Qemu/QemuOpenBoardPkg/README.md | 53 +++ 28 files changed, 2929 insertions(+) create mode 100644 Platform/Qemu/QemuOpenBoardPkg/QemuOpenBoardPkg.dec create mode 100644 Platform/Qemu/QemuOpenBoardPkg/Include/Dsc/Stage1.dsc.inc create mode 100644 Platform/Qemu/QemuOpenBoardPkg/Include/Dsc/Stage2.dsc.inc create mode 100644 Platform/Qemu/QemuOpenBoardPkg/Include/Dsc/Stage3.dsc.inc create mode 100644 Platform/Qemu/QemuOpenBoardPkg/Include/Dsc/Stage4.dsc.inc create mode 100644 Platform/Qemu/QemuOpenBoardPkg/QemuOpenBoardPkg.dsc create mode 100644 Platform/Qemu/QemuOpenBoardPkg/QemuOpenBoardPkg.fdf create mode 100644 Platform/Qemu/QemuOpenBoardPkg/Library/BoardBootManagerLib/BoardBootManagerLib.inf create mode 100644 Platform/Qemu/QemuOpenBoardPkg/Library/BoardInitLib/BoardInitLib.inf create mode 100644 Platform/Qemu/QemuOpenBoardPkg/Library/PeiReportFvLib/PeiReportFvLib.inf create mode 100644 Platform/Qemu/QemuOpenBoardPkg/Library/PlatformSecLib/PlatformSecLib.inf create mode 100644 Platform/Qemu/QemuOpenBoardPkg/Library/QemuOpenFwCfgLib/QemuOpenFwCfgLib.inf create mode 100644 Platform/Qemu/QemuOpenBoardPkg/PlatformInitPei/PlatformInitPei.inf create mode 100644 Platform/Qemu/QemuOpenBoardPkg/Include/Library/QemuOpenFwCfgLib.h create mode 100644 Platform/Qemu/QemuOpenBoardPkg/PlatformInitPei/PlatformInit.h create mode 100644 Platform/Qemu/QemuOpenBoardPkg/Library/BoardBootManagerLib/BoardBootManager.c create mode 100644 Platform/Qemu/QemuOpenBoardPkg/Library/BoardInitLib/BoardInitLib.c create mode 100644 Platform/Qemu/QemuOpenBoardPkg/Library/PeiReportFvLib/PeiReportFvLib.c create mode 100644 Platform/Qemu/QemuOpenBoardPkg/Library/PlatformSecLib/PlatformSecLib.c create mode 100644 Platform/Qemu/QemuOpenBoardPkg/Library/QemuOpenFwCfgLib/QemuOpenFwCfgLib.c create mode 100644 Platform/Qemu/QemuOpenBoardPkg/PlatformInitPei/Cpu.c create mode 100644 Platform/Qemu/QemuOpenBoardPkg/PlatformInitPei/Memory.c create mode 100644 Platform/Qemu/QemuOpenBoardPkg/PlatformInitPei/Pci.c create mode 100644 Platform/Qemu/QemuOpenBoardPkg/PlatformInitPei/Pcie.c create mode 100644 Platform/Qemu/QemuOpenBoardPkg/PlatformInitPei/PlatformInit.c create mode 100644 Platform/Qemu/QemuOpenBoardPkg/Include/Fdf/FlashMap.fdf.inc create mode 100644 Platform/Qemu/QemuOpenBoardPkg/Library/PlatformSecLib/Ia32/SecEntry.nasm create mode 100644 Platform/Qemu/QemuOpenBoardPkg/README.md -- 2.37.0 (Apple Git-136)