Skip to content

Commit f79ec11

Browse files
author
William Kemper
committedNov 12, 2024
Merge
2 parents c0ea97a + bb60a42 commit f79ec11

File tree

74 files changed

+11707
-1097
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

74 files changed

+11707
-1097
lines changed
 

‎.github/workflows/build-cross-compile.yml

+5-1
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ jobs:
8484
- target-cpu: riscv64
8585
gnu-arch: riscv64
8686
debian-arch: riscv64
87-
debian-repository: https://snapshot.debian.org/archive/debian/20240228T034848Z/
87+
debian-repository: https://httpredir.debian.org/debian/
8888
debian-version: sid
8989
tolerate-sysroot-errors: true
9090

@@ -131,6 +131,7 @@ jobs:
131131
id: create-sysroot
132132
run: >
133133
sudo debootstrap
134+
--no-merged-usr
134135
--arch=${{ matrix.debian-arch }}
135136
--verbose
136137
--include=fakeroot,symlinks,build-essential,libx11-dev,libxext-dev,libxrender-dev,libxrandr-dev,libxtst-dev,libxt-dev,libcups2-dev,libfontconfig1-dev,libasound2-dev,libfreetype-dev,libpng-dev
@@ -151,6 +152,9 @@ jobs:
151152
rm -rf sysroot/usr/{sbin,bin,share}
152153
rm -rf sysroot/usr/lib/{apt,gcc,udev,systemd}
153154
rm -rf sysroot/usr/libexec/gcc
155+
# /{bin,sbin,lib}/ are not symbolic links to /usr/{bin,sbin,lib}/ when debootstrap with --no-merged-usr
156+
rm -rf sysroot/{sbin,bin}
157+
rm -rf sysroot/lib/{udev,systemd}
154158
if: steps.create-sysroot.outcome == 'success' && steps.get-cached-sysroot.outputs.cache-hit != 'true'
155159

156160
- name: 'Remove broken sysroot'

‎make/common/NativeCompilation.gmk

+14
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,21 @@ DEPENDENCY_TARGET_SED_PATTERN := \
215215
# The fix-deps-file macro is used to adjust the contents of the generated make
216216
# dependency files to contain paths compatible with make.
217217
#
218+
REWRITE_PATHS_RELATIVE = false
218219
ifeq ($(ALLOW_ABSOLUTE_PATHS_IN_OUTPUT)-$(FILE_MACRO_CFLAGS), false-)
220+
REWRITE_PATHS_RELATIVE = true
221+
endif
222+
223+
# CCACHE_BASEDIR needs fix-deps-file as makefiles use absolute filenames for
224+
# object files while CCACHE_BASEDIR will make ccache relativize all paths for
225+
# its compiler. The compiler then produces relative dependency files.
226+
# make does not know a relative and absolute filename is the same so it will
227+
# ignore such dependencies.
228+
ifneq ($(CCACHE), )
229+
REWRITE_PATHS_RELATIVE = true
230+
endif
231+
232+
ifeq ($(REWRITE_PATHS_RELATIVE), true)
219233
# Need to handle -I flags as both '-Ifoo' and '-I foo'.
220234
MakeCommandRelative = \
221235
$(CD) $(WORKSPACE_ROOT) && \

0 commit comments

Comments
 (0)