* [edk2-devel] [edk2-libc Patch 0/1] setup github actions to build PyUEFI using gcc @ 2024-07-01 8:44 Jayaprakash, N 2024-07-01 8:44 ` [edk2-devel] [edk2-libc Patch 1/1] edk2-libc : add github actions workflow " Jayaprakash, N 0 siblings, 1 reply; 5+ messages in thread From: Jayaprakash, N @ 2024-07-01 8:44 UTC (permalink / raw) To: devel; +Cc: Jayaprakash N This patch request adds github actions workflow to build python uefi interpreter with gcc tool chain on Ubuntu Linux system. The build-python-uefi-gcc.yaml file under .github/workflows implements the build action for building the pyuefi interpreter with gcc tool chain. You may visit BZ4794 to know more about this. Jayaprakash N (1): edk2-libc : add github actions workflow to build PyUEFI using gcc .github/workflows/build-python-uefi-gcc.yaml | 71 ++++++++++++++++++++ 1 file changed, 71 insertions(+) create mode 100644 .github/workflows/build-python-uefi-gcc.yaml -- 2.45.1.windows.1 -=-=-=-=-=-=-=-=-=-=-=- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#119733): https://edk2.groups.io/g/devel/message/119733 Mute This Topic: https://groups.io/mt/106974576/7686176 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [rebecca@openfw.io] -=-=-=-=-=-=-=-=-=-=-=- ^ permalink raw reply [flat|nested] 5+ messages in thread
* [edk2-devel] [edk2-libc Patch 1/1] edk2-libc : add github actions workflow to build PyUEFI using gcc 2024-07-01 8:44 [edk2-devel] [edk2-libc Patch 0/1] setup github actions to build PyUEFI using gcc Jayaprakash, N @ 2024-07-01 8:44 ` Jayaprakash, N 2024-07-01 14:21 ` Michael D Kinney 0 siblings, 1 reply; 5+ messages in thread From: Jayaprakash, N @ 2024-07-01 8:44 UTC (permalink / raw) To: devel; +Cc: Jayaprakash N, Rebecca Cran, Michael D Kinney REF: https://bugzilla.tianocore.org/show_bug.cgi?id=4794 This commit adds github actions workflow to build python uefi interpreter with gcc tool chain on Ubuntu Linux system. The build-python-uefi-gcc.yaml file under .github/workflows implements the build action for building the pyuefi interpreter with gcc tool chain. Cc: Rebecca Cran <rebecca@bsdio.com> Cc: Michael D Kinney <michael.d.kinney@intel.com> Cc: Jayaprakash N <n.jayaprakash@intel.com> Signed-off-by: Jayaprakash N <n.jayaprakash@intel.com> --- .github/workflows/build-python-uefi-gcc.yaml | 71 ++++++++++++++++++++ 1 file changed, 71 insertions(+) create mode 100644 .github/workflows/build-python-uefi-gcc.yaml diff --git a/.github/workflows/build-python-uefi-gcc.yaml b/.github/workflows/build-python-uefi-gcc.yaml new file mode 100644 index 0000000..5df6c5c --- /dev/null +++ b/.github/workflows/build-python-uefi-gcc.yaml @@ -0,0 +1,71 @@ +# GitHub actions workflow to build python uefi using gcc +# +# Copyright (c) 2023-2024, Intel Corporation. All rights reserved. +# SPDX-License-Identifier: BSD-2-Clause-Patent +# + +name: Build Python Interpreter for UEFI with GCC + +on: [push, pull_request] + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - name: Checkout repository + uses: actions/checkout@v4 + + - name: Setup Python + uses: actions/setup-python@v5 + with: + python-version: '3.x' + + - name: Install dependencies + run: | + sudo apt-get update + sudo apt-get install -y build-essential uuid-dev iasl git nasm python3-distutils dos2unix + + - name: Clone EDK2 + run: | + git clone https://github.com/tianocore/edk2.git + cd edk2 + git submodule update --init + + - name: Build EDK2 Base Tools + run: | + cd edk2 + . edksetup.sh + make -C BaseTools + + - name: Run srcprep.py + run: | + cd AppPkg/Applications/Python/Python-3.6.8/ + python3 srcprep.py + + - name: Build Python UEFI + run: | + export PACKAGES_PATH=`pwd`/edk2:`pwd`: + export EDK2_LIBC_PATH=`pwd` + cd edk2 + . edksetup.sh + build -t GCC5 -a X64 -b RELEASE -p $EDK2_LIBC_PATH/AppPkg/AppPkg.dsc -D BUILD_PYTHON368 + + - name: Create PyUEFI package + run: | + export WORKSPACE=`pwd`/edk2 + echo WORKSPACE is $WORKSPACE + export EDK2_LIBC_PATH=`pwd` + # run the shell script through dos2unix to update any CRLF to LF line ending format + dos2unix AppPkg/Applications/Python/Python-3.6.8/create_python_pkg.sh + . AppPkg/Applications/Python/Python-3.6.8/create_python_pkg.sh GCC5 RELEASE X64 myUEFIPy + + - name: List build artifacts + run: | + ls -R edk2/myUEFIPy + + - name: Upload build output as artifact + uses: actions/upload-artifact@v4 + with: + name: myUEFIPy-build-gcc-output + path: edk2/myUEFIPy/**/* \ No newline at end of file -- 2.45.1.windows.1 -=-=-=-=-=-=-=-=-=-=-=- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#119734): https://edk2.groups.io/g/devel/message/119734 Mute This Topic: https://groups.io/mt/106974577/7686176 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [rebecca@openfw.io] -=-=-=-=-=-=-=-=-=-=-=- ^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: [edk2-devel] [edk2-libc Patch 1/1] edk2-libc : add github actions workflow to build PyUEFI using gcc 2024-07-01 8:44 ` [edk2-devel] [edk2-libc Patch 1/1] edk2-libc : add github actions workflow " Jayaprakash, N @ 2024-07-01 14:21 ` Michael D Kinney 2024-07-01 14:24 ` Jayaprakash, N 0 siblings, 1 reply; 5+ messages in thread From: Michael D Kinney @ 2024-07-01 14:21 UTC (permalink / raw) To: Jayaprakash, N, devel@edk2.groups.io; +Cc: Rebecca Cran, Kinney, Michael D One comment below. Mike > -----Original Message----- > From: Jayaprakash, N <n.jayaprakash@intel.com> > Sent: Monday, July 1, 2024 1:44 AM > To: devel@edk2.groups.io > Cc: Jayaprakash, N <n.jayaprakash@intel.com>; Rebecca Cran > <rebecca@bsdio.com>; Kinney, Michael D <michael.d.kinney@intel.com> > Subject: [edk2-libc Patch 1/1] edk2-libc : add github actions workflow to > build PyUEFI using gcc > > REF: https://bugzilla.tianocore.org/show_bug.cgi?id=4794 > > This commit adds github actions workflow to build python uefi > interpreter with gcc tool chain on Ubuntu Linux system. > The build-python-uefi-gcc.yaml file under .github/workflows > implements the build action for building the pyuefi interpreter with > gcc tool chain. > > Cc: Rebecca Cran <rebecca@bsdio.com> > Cc: Michael D Kinney <michael.d.kinney@intel.com> > Cc: Jayaprakash N <n.jayaprakash@intel.com> > Signed-off-by: Jayaprakash N <n.jayaprakash@intel.com> > --- > .github/workflows/build-python-uefi-gcc.yaml | 71 ++++++++++++++++++++ > 1 file changed, 71 insertions(+) > create mode 100644 .github/workflows/build-python-uefi-gcc.yaml > > diff --git a/.github/workflows/build-python-uefi-gcc.yaml > b/.github/workflows/build-python-uefi-gcc.yaml > new file mode 100644 > index 0000000..5df6c5c > --- /dev/null > +++ b/.github/workflows/build-python-uefi-gcc.yaml > @@ -0,0 +1,71 @@ > +# GitHub actions workflow to build python uefi using gcc > +# > +# Copyright (c) 2023-2024, Intel Corporation. All rights reserved. > +# SPDX-License-Identifier: BSD-2-Clause-Patent > +# > + > +name: Build Python Interpreter for UEFI with GCC > + > +on: [push, pull_request] > + > +jobs: > + build: > + runs-on: ubuntu-latest > + > + steps: > + - name: Checkout repository > + uses: actions/checkout@v4 > + > + - name: Setup Python > + uses: actions/setup-python@v5 > + with: > + python-version: '3.x' > + > + - name: Install dependencies > + run: | > + sudo apt-get update > + sudo apt-get install -y build-essential uuid-dev iasl git nasm > python3-distutils dos2unix > + > + - name: Clone EDK2 > + run: | > + git clone https://github.com/tianocore/edk2.git > + cd edk2 > + git submodule update --init > + > + - name: Build EDK2 Base Tools > + run: | > + cd edk2 > + . edksetup.sh > + make -C BaseTools > + > + - name: Run srcprep.py > + run: | > + cd AppPkg/Applications/Python/Python-3.6.8/ > + python3 srcprep.py > + > + - name: Build Python UEFI > + run: | > + export PACKAGES_PATH=`pwd`/edk2:`pwd`: > + export EDK2_LIBC_PATH=`pwd` > + cd edk2 > + . edksetup.sh > + build -t GCC5 -a X64 -b RELEASE -p $EDK2_LIBC_PATH/AppPkg/AppPkg.dsc > -D BUILD_PYTHON368 > + > + - name: Create PyUEFI package > + run: | > + export WORKSPACE=`pwd`/edk2 > + echo WORKSPACE is $WORKSPACE > + export EDK2_LIBC_PATH=`pwd` > + # run the shell script through dos2unix to update any CRLF to LF > line ending format > + dos2unix AppPkg/Applications/Python/Python- > 3.6.8/create_python_pkg.sh > + . AppPkg/Applications/Python/Python-3.6.8/create_python_pkg.sh GCC5 The create_python_pkg.sh and all .sh files should be changed in git repo to use unix line endings and remove the need to use dos2unix. > RELEASE X64 myUEFIPy > + > + - name: List build artifacts > + run: | > + ls -R edk2/myUEFIPy > + > + - name: Upload build output as artifact > + uses: actions/upload-artifact@v4 > + with: > + name: myUEFIPy-build-gcc-output > + path: edk2/myUEFIPy/**/* > \ No newline at end of file > -- > 2.45.1.windows.1 -=-=-=-=-=-=-=-=-=-=-=- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#119739): https://edk2.groups.io/g/devel/message/119739 Mute This Topic: https://groups.io/mt/106974577/7686176 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [rebecca@openfw.io] -=-=-=-=-=-=-=-=-=-=-=- ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [edk2-devel] [edk2-libc Patch 1/1] edk2-libc : add github actions workflow to build PyUEFI using gcc 2024-07-01 14:21 ` Michael D Kinney @ 2024-07-01 14:24 ` Jayaprakash, N 2024-07-01 16:16 ` Jayaprakash, N 0 siblings, 1 reply; 5+ messages in thread From: Jayaprakash, N @ 2024-07-01 14:24 UTC (permalink / raw) To: Kinney, Michael D, devel@edk2.groups.io; +Cc: Rebecca Cran Thanks Mike. I shall make this change and submit the PR again for review. Regards, JP -----Original Message----- From: Kinney, Michael D <michael.d.kinney@intel.com> Sent: Monday, July 1, 2024 7:51 PM To: Jayaprakash, N <n.jayaprakash@intel.com>; devel@edk2.groups.io Cc: Rebecca Cran <rebecca@bsdio.com>; Kinney, Michael D <michael.d.kinney@intel.com> Subject: RE: [edk2-libc Patch 1/1] edk2-libc : add github actions workflow to build PyUEFI using gcc One comment below. Mike > -----Original Message----- > From: Jayaprakash, N <n.jayaprakash@intel.com> > Sent: Monday, July 1, 2024 1:44 AM > To: devel@edk2.groups.io > Cc: Jayaprakash, N <n.jayaprakash@intel.com>; Rebecca Cran > <rebecca@bsdio.com>; Kinney, Michael D <michael.d.kinney@intel.com> > Subject: [edk2-libc Patch 1/1] edk2-libc : add github actions workflow > to build PyUEFI using gcc > > REF: https://bugzilla.tianocore.org/show_bug.cgi?id=4794 > > This commit adds github actions workflow to build python uefi > interpreter with gcc tool chain on Ubuntu Linux system. > The build-python-uefi-gcc.yaml file under .github/workflows implements > the build action for building the pyuefi interpreter with gcc tool > chain. > > Cc: Rebecca Cran <rebecca@bsdio.com> > Cc: Michael D Kinney <michael.d.kinney@intel.com> > Cc: Jayaprakash N <n.jayaprakash@intel.com> > Signed-off-by: Jayaprakash N <n.jayaprakash@intel.com> > --- > .github/workflows/build-python-uefi-gcc.yaml | 71 > ++++++++++++++++++++ > 1 file changed, 71 insertions(+) > create mode 100644 .github/workflows/build-python-uefi-gcc.yaml > > diff --git a/.github/workflows/build-python-uefi-gcc.yaml > b/.github/workflows/build-python-uefi-gcc.yaml > new file mode 100644 > index 0000000..5df6c5c > --- /dev/null > +++ b/.github/workflows/build-python-uefi-gcc.yaml > @@ -0,0 +1,71 @@ > +# GitHub actions workflow to build python uefi using gcc # # > +Copyright (c) 2023-2024, Intel Corporation. All rights reserved. > +# SPDX-License-Identifier: BSD-2-Clause-Patent # > + > +name: Build Python Interpreter for UEFI with GCC > + > +on: [push, pull_request] > + > +jobs: > + build: > + runs-on: ubuntu-latest > + > + steps: > + - name: Checkout repository > + uses: actions/checkout@v4 > + > + - name: Setup Python > + uses: actions/setup-python@v5 > + with: > + python-version: '3.x' > + > + - name: Install dependencies > + run: | > + sudo apt-get update > + sudo apt-get install -y build-essential uuid-dev iasl git > + nasm > python3-distutils dos2unix > + > + - name: Clone EDK2 > + run: | > + git clone https://github.com/tianocore/edk2.git > + cd edk2 > + git submodule update --init > + > + - name: Build EDK2 Base Tools > + run: | > + cd edk2 > + . edksetup.sh > + make -C BaseTools > + > + - name: Run srcprep.py > + run: | > + cd AppPkg/Applications/Python/Python-3.6.8/ > + python3 srcprep.py > + > + - name: Build Python UEFI > + run: | > + export PACKAGES_PATH=`pwd`/edk2:`pwd`: > + export EDK2_LIBC_PATH=`pwd` > + cd edk2 > + . edksetup.sh > + build -t GCC5 -a X64 -b RELEASE -p > + $EDK2_LIBC_PATH/AppPkg/AppPkg.dsc > -D BUILD_PYTHON368 > + > + - name: Create PyUEFI package > + run: | > + export WORKSPACE=`pwd`/edk2 > + echo WORKSPACE is $WORKSPACE > + export EDK2_LIBC_PATH=`pwd` > + # run the shell script through dos2unix to update any CRLF to > + LF > line ending format > + dos2unix AppPkg/Applications/Python/Python- > 3.6.8/create_python_pkg.sh > + . > + AppPkg/Applications/Python/Python-3.6.8/create_python_pkg.sh GCC5 The create_python_pkg.sh and all .sh files should be changed in git repo to use unix line endings and remove the need to use dos2unix. > RELEASE X64 myUEFIPy > + > + - name: List build artifacts > + run: | > + ls -R edk2/myUEFIPy > + > + - name: Upload build output as artifact > + uses: actions/upload-artifact@v4 > + with: > + name: myUEFIPy-build-gcc-output > + path: edk2/myUEFIPy/**/* > \ No newline at end of file > -- > 2.45.1.windows.1 -=-=-=-=-=-=-=-=-=-=-=- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#119740): https://edk2.groups.io/g/devel/message/119740 Mute This Topic: https://groups.io/mt/106974577/7686176 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [rebecca@openfw.io] -=-=-=-=-=-=-=-=-=-=-=- ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [edk2-devel] [edk2-libc Patch 1/1] edk2-libc : add github actions workflow to build PyUEFI using gcc 2024-07-01 14:24 ` Jayaprakash, N @ 2024-07-01 16:16 ` Jayaprakash, N 0 siblings, 0 replies; 5+ messages in thread From: Jayaprakash, N @ 2024-07-01 16:16 UTC (permalink / raw) To: Kinney, Michael D, devel@edk2.groups.io; +Cc: Rebecca Cran Hi Mike, I have sent the updated V2 patch for review. Changed the line endings of create_python_pkg.sh script to use unix line endings and removed the installation and usage of dos2unix from the actions .yaml file. Regards, JP -----Original Message----- From: Jayaprakash, N Sent: Monday, July 1, 2024 7:55 PM To: Kinney, Michael D <michael.d.kinney@intel.com>; devel@edk2.groups.io Cc: Rebecca Cran <rebecca@bsdio.com> Subject: RE: [edk2-libc Patch 1/1] edk2-libc : add github actions workflow to build PyUEFI using gcc Thanks Mike. I shall make this change and submit the PR again for review. Regards, JP -----Original Message----- From: Kinney, Michael D <michael.d.kinney@intel.com> Sent: Monday, July 1, 2024 7:51 PM To: Jayaprakash, N <n.jayaprakash@intel.com>; devel@edk2.groups.io Cc: Rebecca Cran <rebecca@bsdio.com>; Kinney, Michael D <michael.d.kinney@intel.com> Subject: RE: [edk2-libc Patch 1/1] edk2-libc : add github actions workflow to build PyUEFI using gcc One comment below. Mike > -----Original Message----- > From: Jayaprakash, N <n.jayaprakash@intel.com> > Sent: Monday, July 1, 2024 1:44 AM > To: devel@edk2.groups.io > Cc: Jayaprakash, N <n.jayaprakash@intel.com>; Rebecca Cran > <rebecca@bsdio.com>; Kinney, Michael D <michael.d.kinney@intel.com> > Subject: [edk2-libc Patch 1/1] edk2-libc : add github actions workflow > to build PyUEFI using gcc > > REF: https://bugzilla.tianocore.org/show_bug.cgi?id=4794 > > This commit adds github actions workflow to build python uefi > interpreter with gcc tool chain on Ubuntu Linux system. > The build-python-uefi-gcc.yaml file under .github/workflows implements > the build action for building the pyuefi interpreter with gcc tool > chain. > > Cc: Rebecca Cran <rebecca@bsdio.com> > Cc: Michael D Kinney <michael.d.kinney@intel.com> > Cc: Jayaprakash N <n.jayaprakash@intel.com> > Signed-off-by: Jayaprakash N <n.jayaprakash@intel.com> > --- > .github/workflows/build-python-uefi-gcc.yaml | 71 > ++++++++++++++++++++ > 1 file changed, 71 insertions(+) > create mode 100644 .github/workflows/build-python-uefi-gcc.yaml > > diff --git a/.github/workflows/build-python-uefi-gcc.yaml > b/.github/workflows/build-python-uefi-gcc.yaml > new file mode 100644 > index 0000000..5df6c5c > --- /dev/null > +++ b/.github/workflows/build-python-uefi-gcc.yaml > @@ -0,0 +1,71 @@ > +# GitHub actions workflow to build python uefi using gcc # # > +Copyright (c) 2023-2024, Intel Corporation. All rights reserved. > +# SPDX-License-Identifier: BSD-2-Clause-Patent # > + > +name: Build Python Interpreter for UEFI with GCC > + > +on: [push, pull_request] > + > +jobs: > + build: > + runs-on: ubuntu-latest > + > + steps: > + - name: Checkout repository > + uses: actions/checkout@v4 > + > + - name: Setup Python > + uses: actions/setup-python@v5 > + with: > + python-version: '3.x' > + > + - name: Install dependencies > + run: | > + sudo apt-get update > + sudo apt-get install -y build-essential uuid-dev iasl git > + nasm > python3-distutils dos2unix > + > + - name: Clone EDK2 > + run: | > + git clone https://github.com/tianocore/edk2.git > + cd edk2 > + git submodule update --init > + > + - name: Build EDK2 Base Tools > + run: | > + cd edk2 > + . edksetup.sh > + make -C BaseTools > + > + - name: Run srcprep.py > + run: | > + cd AppPkg/Applications/Python/Python-3.6.8/ > + python3 srcprep.py > + > + - name: Build Python UEFI > + run: | > + export PACKAGES_PATH=`pwd`/edk2:`pwd`: > + export EDK2_LIBC_PATH=`pwd` > + cd edk2 > + . edksetup.sh > + build -t GCC5 -a X64 -b RELEASE -p > + $EDK2_LIBC_PATH/AppPkg/AppPkg.dsc > -D BUILD_PYTHON368 > + > + - name: Create PyUEFI package > + run: | > + export WORKSPACE=`pwd`/edk2 > + echo WORKSPACE is $WORKSPACE > + export EDK2_LIBC_PATH=`pwd` > + # run the shell script through dos2unix to update any CRLF to > + LF > line ending format > + dos2unix AppPkg/Applications/Python/Python- > 3.6.8/create_python_pkg.sh > + . > + AppPkg/Applications/Python/Python-3.6.8/create_python_pkg.sh GCC5 The create_python_pkg.sh and all .sh files should be changed in git repo to use unix line endings and remove the need to use dos2unix. > RELEASE X64 myUEFIPy > + > + - name: List build artifacts > + run: | > + ls -R edk2/myUEFIPy > + > + - name: Upload build output as artifact > + uses: actions/upload-artifact@v4 > + with: > + name: myUEFIPy-build-gcc-output > + path: edk2/myUEFIPy/**/* > \ No newline at end of file > -- > 2.45.1.windows.1 -=-=-=-=-=-=-=-=-=-=-=- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#119744): https://edk2.groups.io/g/devel/message/119744 Mute This Topic: https://groups.io/mt/106974577/7686176 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [rebecca@openfw.io] -=-=-=-=-=-=-=-=-=-=-=- ^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2024-07-01 16:17 UTC | newest] Thread overview: 5+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2024-07-01 8:44 [edk2-devel] [edk2-libc Patch 0/1] setup github actions to build PyUEFI using gcc Jayaprakash, N 2024-07-01 8:44 ` [edk2-devel] [edk2-libc Patch 1/1] edk2-libc : add github actions workflow " Jayaprakash, N 2024-07-01 14:21 ` Michael D Kinney 2024-07-01 14:24 ` Jayaprakash, N 2024-07-01 16:16 ` Jayaprakash, N
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox