Skip to content

Commit eda9451

Browse files
committed
Change of toolchain files to support Pulp Repository
Updated PACKAGE_URL_LIST and PACKAGE_REPO_LIST Updated development repo Updated PACKAGE_REPO_LIST in daily_build Updated toolchain download shell script Updated edge-base repo URL Updated toolchain and pkggen_core txt Signed-off-by: Lishan Liu <[email protected]>
1 parent 8b4a153 commit eda9451

File tree

10 files changed

+24
-20
lines changed

10 files changed

+24
-20
lines changed

SPECS/edge-repos/edge-base.repo

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[edge-base]
22
name=Edge Base $releasever $basearch
3-
baseurl=https://files-rs.edgeorchestration.intel.com/files-edge-orch/microvisor/rpm/3.0/
3+
baseurl=https://files-rs.edgeorchestration.intel.com/files-edge-orch/microvisor/rpms/3.0/base/
44
gpgkey=file:///etc/pki/rpm-gpg/INTEL-RPM-GPG-KEY
55
gpgcheck=1
66
repo_gpgcheck=0
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"Signatures": {
3-
"edge-base.repo": "5193b38582bd23705715df7c23a5a4cc6e0fbf7ffe5ced82b0ebe5297382a7c6",
3+
"edge-base.repo": "c33244959fbc4dbb9a65983aa8bd1360d8457ba2f85bc56e87462464ff6ce769",
44
"INTEL-RPM-GPG-KEY": "90cf27d0aff4e69a11cc3da2e492a383e05e681cafff23525e796c6494d58336"
55
}
66
}

SPECS/edge-repos/edge-repos.spec

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Summary: Edge Microvisor Toolkit repo files, gpg keys
22
Name: edge-repos
33
Version: 3.0
4-
Release: 4%{?dist}
4+
Release: 5%{?dist}
55
License: MIT
66
Vendor: Intel Corporation
77
Distribution: Edge Microvisor Toolkit
@@ -54,6 +54,9 @@ gpg --batch --yes --delete-keys 84910237BDFAAD16C4F9D44411FF864ABDCE8692
5454
%{_sysconfdir}/pki/rpm-gpg/INTEL-RPM-GPG-KEY
5555

5656
%changelog
57+
* Mon Oct 06 2025 Lishan Liu <[email protected]> - 3.0-5
58+
- Update repo URL
59+
5760
* Mon Apr 21 2025 Mun Chun Yep <[email protected]> - 3.0-4
5861
- Update Intel rpm gpg key and repo URL.
5962
- License verified

toolkit/Makefile

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -143,14 +143,13 @@ SOURCE_URL ?= https://files-rs.edgeorchestration.intel.com/files-edge-or
143143
# assignments do not take affect without using 'override'. This means that all of the following PACKAGE_URL_LIST values will
144144
# be ignored if the user sets any value.
145145
##help:var:PACKAGE_URL_LIST:<urls_list>=Space-separated list of URLs to download toolchain RPM packages from, used to populate the toolchain packages if `REBUILD_TOOLCHAIN=n'. The URLs will replace the default set of URLs. Print default list with 'make -s printvar-PACKAGE_URL_LIST'.
146-
PACKAGE_URL_LIST ?= https://files-rs.edgeorchestration.intel.com/files-edge-orch/microvisor/rpm/$(RELEASE_MAJOR_ID)/RPMS/x86_64
147-
PACKAGE_URL_LIST += https://files-rs.edgeorchestration.intel.com/files-edge-orch/microvisor/rpm/$(RELEASE_MAJOR_ID)/RPMS/noarch
148-
PACKAGE_URL_LIST += https://files-rs.edgeorchestration.intel.com/files-edge-orch/microvisor/rpm/$(RELEASE_MAJOR_ID)/RPMS/debuginfo
146+
PACKAGE_URL_LIST ?= https://files-rs.edgeorchestration.intel.com/files-edge-orch/microvisor/rpms/$(RELEASE_MAJOR_ID)/base
147+
PACKAGE_URL_LIST += https://files-rs.edgeorchestration.intel.com/files-edge-orch/microvisor/rpms/$(RELEASE_MAJOR_ID)/debuginfo
149148

150-
PACKAGE_REPO_LIST ?= https://files-rs.edgeorchestration.intel.com/files-edge-orch/microvisor/rpm/$(RELEASE_MAJOR_ID)
149+
PACKAGE_REPO_LIST ?= $(PACKAGE_URL_LIST)
151150

152-
REPO_LIST ?=
153-
SRPM_URL_LIST ?= https://files-rs.edgeorchestration.intel.com/files-edge-orch/microvisor/rpm/$(RELEASE_MAJOR_ID)/SRPMS
151+
REPO_LIST ?=
152+
SRPM_URL_LIST ?= https://files-rs.edgeorchestration.intel.com/files-edge-orch/microvisor/rpms/$(RELEASE_MAJOR_ID)/srpm
154153

155154
##help:var:VALIDATE_TOOLCHAIN_GPG={y,n}=Enable or disable GPG validation of the toolchain RPMs. If enabled toolchain RPMs will be validated against the GPG keys in the TOOLCHAIN_GPG_VALIDATION_KEYS variable. On by default when using upstream toolchain RPMs.
156155
# Based on REBUILD_TOOLCHAIN and DAILY_BUILD_ID. If REBUILD_TOOLCHAIN is set to 'y' or DAILY_BUILD_ID is set to any non-empty value, then GPG validation is disabled by default.

toolkit/resources/manifests/package/development.repo

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[development-repo]
22
name=development Repo
3-
baseurl=http://rpm-edgemicrovisor.intel.com/3.0
3+
baseurl=http://rpm-emt.intel.com/pulp/content/emt-3.0-test-base
44
enabled=1
55
gpgcheck=0
66
skip_if_unavailable=1

toolkit/resources/manifests/package/pkggen_core_x86_64.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -213,8 +213,8 @@ libltdl-2.4.7-1.emt3.x86_64.rpm
213213
libltdl-devel-2.4.7-1.emt3.x86_64.rpm
214214
lua-5.4.6-1.emt3.x86_64.rpm
215215
lua-libs-5.4.6-1.emt3.x86_64.rpm
216-
edge-repos-3.0-4.emt3.noarch.rpm
217-
edge-repos-shared-3.0-4.emt3.noarch.rpm
216+
edge-repos-3.0-5.emt3.noarch.rpm
217+
edge-repos-shared-3.0-5.emt3.noarch.rpm
218218
tdnf-3.5.8-10.emt3.x86_64.rpm
219219
tdnf-cli-libs-3.5.8-10.emt3.x86_64.rpm
220220
tdnf-devel-3.5.8-10.emt3.x86_64.rpm

toolkit/resources/manifests/package/toolchain_x86_64.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,8 +72,8 @@ e2fsprogs-devel-1.47.0-2.emt3.x86_64.rpm
7272
e2fsprogs-lang-1.47.0-2.emt3.x86_64.rpm
7373
e2fsprogs-libs-1.47.0-2.emt3.x86_64.rpm
7474
edge-check-macros-3.0-2.emt3.noarch.rpm
75-
edge-repos-3.0-4.emt3.noarch.rpm
76-
edge-repos-shared-3.0-4.emt3.noarch.rpm
75+
edge-repos-3.0-5.emt3.noarch.rpm
76+
edge-repos-shared-3.0-5.emt3.noarch.rpm
7777
edge-rpm-macros-3.0-2.emt3.noarch.rpm
7878
elfutils-0.189-6.emt3.x86_64.rpm
7979
elfutils-debuginfo-0.189-6.emt3.x86_64.rpm

toolkit/scripts/daily_build.mk

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -65,19 +65,20 @@ endif
6565

6666
ifneq ($(DAILY_BUILD_REPO),)
6767
PACKAGE_ROOT := $(shell grep -m 1 "baseurl" $(DAILY_BUILD_REPO) | sed 's|baseurl=||g')
68+
PACKAGE_DEBUGINFO := $(subst base,debuginfo,$(PACKAGE_ROOT))
69+
PACKAGE_SRPM := $(subst base,srpm,$(PACKAGE_ROOT))
6870
$(warning )
6971
$(warning ######################### WARNING #########################)
7072
$(warning Using a Daily Build Repo at following location:)
7173
$(warning $(PACKAGE_ROOT))
7274
$(warning ######################### WARNING #########################)
7375
$(warning )
7476
override PACKAGE_URL_LIST := $(PACKAGE_URL_LIST) \
75-
$(PACKAGE_ROOT)/RPMS/x86_64 \
76-
$(PACKAGE_ROOT)/RPMS/noarch \
77-
$(PACKAGE_ROOT)/RPMS/debuginfo
77+
$(PACKAGE_ROOT) \
78+
$(PACKAGE_DEBUGINFO)
7879

7980
override SRPM_URL_LIST := $(SRPM_URL_LIST) \
80-
$(PACKAGE_ROOT)/SRPMS
81+
$(PACKAGE_SRPM)
8182

8283
override PACKAGE_REPO_LIST := $(PACKAGE_REPO_LIST) \
8384
$(PACKAGE_ROOT)

toolkit/scripts/toolchain/build_official_toolchain_rpms.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -348,7 +348,7 @@ start_record_timestamp "build packages/install"
348348
# Download JDK rpm
349349
echo "Downloading MsOpenJDK rpm"
350350
MSOPENJDK_FILENAME="msopenjdk-17-17.0.12-1.$(uname -m).rpm"
351-
MSOPENJDK_URL="https://files-rs.edgeorchestration.intel.com/files-edge-orch/microvisor/rpm/3.0/RPMS/$(uname -m)/$MSOPENJDK_FILENAME"
351+
MSOPENJDK_URL="https://files-rs.edgeorchestration.intel.com/files-edge-orch/microvisor/rpms/3.0/base/Packages/m/$(uname -m)/$MSOPENJDK_FILENAME"
352352
case $(uname -m) in
353353
x86_64) MSOPENJDK_EXPECTED_HASH="ec41e3ccf6f78c49f2ee2373df80b375ed3c2d5d97eac412b7ade0f045b0d9f4" ;;
354354
aarch64) MSOPENJDK_EXPECTED_HASH="0532d42d5c010152c09e88971f9aecd84af54f935973bbf0f1eba2c1c6839726" ;;

toolkit/scripts/toolchain/download_toolchain_rpm.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,8 @@ function download() {
165165
log_num=$((log_num + 1))
166166
attempt_log_file="$log_file.$log_num"
167167
src_url="$url/$rpm_name"
168-
168+
first_char=$(echo "${rpm_name:0:1}" | tr '[:upper:]' '[:lower:]')
169+
src_url="$url/Packages/$first_char/$rpm_name"
169170
echo "$src_url -> $attempt_log_file" >> "$log_file"
170171
{ $downloader_tool $cert $key --no-clobber --output-file="$dst_file" --log-file="$attempt_log_file" "$src_url" 1>/dev/null 2>&1 ; res=$? ; } || true
171172

0 commit comments

Comments
 (0)