1
1
#
2
- # Copyright (c) 2013, 2022 , Oracle and/or its affiliates. All rights reserved.
2
+ # Copyright (c) 2013, 2023 , Oracle and/or its affiliates. All rights reserved.
3
3
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4
4
#
5
5
# This code is free software; you can redistribute it and/or modify it
@@ -71,6 +71,7 @@ else ifeq ($(BASE_OS), Fedora)
71
71
BASE_URL := http://fedora.riscv.rocks/repos-dist/$(BASE_OS_VERSION)/$(ARCH)/Packages/
72
72
else
73
73
DEFAULT_OS_VERSION := 27
74
+ LATEST_ARCHIVED_OS_VERSION := 35
74
75
ifeq ($(BASE_OS_VERSION), )
75
76
BASE_OS_VERSION := $(DEFAULT_OS_VERSION)
76
77
endif
@@ -79,11 +80,11 @@ else ifeq ($(BASE_OS), Fedora)
79
80
else
80
81
FEDORA_TYPE := fedora/linux
81
82
endif
82
- ARCHIVED := $(shell [ $(BASE_OS_VERSION) -lt $(DEFAULT_OS_VERSION) ] && echo true)
83
- ifeq ($(ARCHIVED),true)
84
- BASE_URL := https://archives.fedoraproject.org/pub/archive/$(FEDORA_TYPE)/releases/$(BASE_OS_VERSION)/Everything/$(ARCH)/os/Packages/
85
- else
83
+ NOT_ARCHIVED := $(shell [ $(BASE_OS_VERSION) -gt $(LATEST_ARCHIVED_OS_VERSION) ] && echo true)
84
+ ifeq ($(NOT_ARCHIVED),true)
86
85
BASE_URL := https://dl.fedoraproject.org/pub/$(FEDORA_TYPE)/releases/$(BASE_OS_VERSION)/Everything/$(ARCH)/os/Packages/
86
+ else
87
+ BASE_URL := https://archives.fedoraproject.org/pub/archive/$(FEDORA_TYPE)/releases/$(BASE_OS_VERSION)/Everything/$(ARCH)/os/Packages/
87
88
endif
88
89
endif
89
90
LINUX_VERSION := Fedora_$(BASE_OS_VERSION)
@@ -449,7 +450,7 @@ $(BUILDDIR)/$(binutils_ver)/Makefile \
449
450
$(PATHPRE) $(ENVS) CFLAGS="-O2 $(CFLAGS)" \
450
451
$(BINUTILS_CFG) \
451
452
$(CONFIG) \
452
- $(LINKER_CONFIG) \
453
+ $(LINKER_CONFIG) \
453
454
--with-sysroot=$(SYSROOT) \
454
455
--disable-nls \
455
456
--program-prefix=$(TARGET)- \
0 commit comments