From b5e4c5877582fd778630f32e66dc2bd36e3387d1 Mon Sep 17 00:00:00 2001 From: Your Name Date: Fri, 31 Jan 2025 15:35:15 +0000 Subject: [PATCH] Add .gitignore and .gitea/workflows/ci.yml --- .gitea/workflows/ci.yml | 1 + u-boot-tools.spec | 22 +++++++++++++++++++++- 2 files changed, 22 insertions(+), 1 deletion(-) diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index d5b8b48..dd7cf08 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -13,4 +13,5 @@ jobs: with: CI_DEPLOY: ${{ secrets.CI_DEPLOY }} PUBLICATOR: ${{ secrets.PUBLICATOR }} + REPO_DEPLOY: ${{ secrets.REPO_DEPLOY }} diff --git a/u-boot-tools.spec b/u-boot-tools.spec index 70ed18c..1a14223 100644 --- a/u-boot-tools.spec +++ b/u-boot-tools.spec @@ -1,4 +1,5 @@ %define debug_package %nil +%global optflags %(echo %{optflags} | sed -e 's/-ffat-lto-objects//g' -e 's/-fvar-tracking-assignments//g') Name: u-boot-tools Version: 2024.04 @@ -13,6 +14,15 @@ BuildRequires: dtc BuildRequires: openssl-devel BuildRequires: bison BuildRequires: flex +BuildRequires: pkgconfig(python3) +BuildRequires: python38-devel +BuildRequires: python3egg(setuptools) +BuildRequires: python38-setuptools +BuildRequires: openssl1.1 +BuildRequires: openssl1.1-devel +BuildRequires: %{_lib}tinfo5 +BuildRequires: ncurses-devel +BuildRequires: llvm17 Provides: uboot-mkimage %description @@ -24,10 +34,20 @@ mkimage a tool that creates kernel bootable images for u-boot. %prep %setup -q -n u-boot-%{version} +sed -i 's/tinfo/ncursesw/g' tools/Makefile + %build +%set_build_flags +export PYTHONPATH=%{python38_sitelib} +export PYTHON3=/usr/libexec/python3.8 +export PYTHON=/usr/libexec/python3.8 + +#export PATH=/opt/openssl1.1/include/openssl/:/opt/openssl1.1/lib/:$PATH + make defconfig sed -i -e "s:-g ::" tools/Makefile || die -%make HOSTCC=%{__cc} HOSTSTRIP=%{__strip} USE_PRIVATE_LIBGG=yes tools-all +%make u-boot +#make HOSTCC=%{__cc} HOSTSTRIP=%{__strip} USE_PRIVATE_LIBGG=yes tools-all PYTHON3=/usr/libexec/python3.8 %install install -D -m 0755 tools/mkimage %{buildroot}%{_bindir}/mkimage