[go: nahoru, domu]

Skip to content

Commit

Permalink
Don't use symlinks in the installer scripts
Browse files Browse the repository at this point in the history
Latest ChromeOS disallows following symlinks, and it's better to have
these various installer scripts available before we get the chance to
remount the cache symfollow.
  • Loading branch information
dnschneid committed Oct 24, 2022
1 parent 59382be commit 9eaac08
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,15 @@ LIBSTARGETS = $(patsubst src/%.c, crouton%.so, $(LIBS))
SRCTARGETS = $(patsubst src/%.c,crouton%,$(filter-out $(LIBS),$(wildcard src/*.c)))
CONTRIBUTORS = CONTRIBUTORS
WRAPPER = build/wrapper.sh
SCRIPTS := \
$(wildcard chroot-bin/*) \
$(wildcard chroot-etc/*) \
SCRIPTS_NOSYM := \
$(wildcard host-bin/*) \
$(wildcard installer/*.sh) installer/functions \
$(wildcard installer/*/*) \
$(wildcard src/*) \
$(wildcard targets/*)
SCRIPTS := \
$(wildcard chroot-bin/*) \
$(wildcard chroot-etc/*)
EXTPEXE = host-ext/crouton/kiwi.pexe
EXTPEXESOURCES = $(wildcard host-ext/nacl_src/*.h) \
$(wildcard host-ext/nacl_src/*.cc)
Expand Down Expand Up @@ -58,9 +59,10 @@ $(TARGET): $(WRAPPER) $(BUILDDIR) $(GENVERSION) $(GITHEAD) Makefile
&& chmod +x /dev/stdout \
;} > $(TARGET) || ! rm -f $(TARGET)

$(BUILDDIR): $(SCRIPTS) Makefile
$(BUILDDIR): $(SCRIPTS) $(SCRIPTS_NOSYM) Makefile
rm -rf $(BUILDDIR) && mkdir -p $(BUILDDIR) \
&& cp -at $(BUILDDIR) --parents $(SCRIPTS) \
&& cp -Lprt $(BUILDDIR) --parents $(SCRIPTS_NOSYM) \
&& for bootstrap in $(BOOTSTRAPS); do \
tmp=$(BUILDDIR); \
[ -h "$$bootstrap" ] && continue; \
Expand Down

0 comments on commit 9eaac08

Please sign in to comment.