diff --git a/Documentation/quickstart/install.rst b/Documentation/quickstart/install.rst index 71cdfa6b8c..d7265e6ee8 100644 --- a/Documentation/quickstart/install.rst +++ b/Documentation/quickstart/install.rst @@ -39,8 +39,6 @@ Prerequisites .. code-block:: console - $ brew tap discoteq/discoteq - $ brew install flock $ brew install x86_64-elf-gcc # Used by simulator $ brew install u-boot-tools # Some platform integrate with u-boot diff --git a/README.md b/README.md index 92cab4c5bb..4d8704681f 100644 --- a/README.md +++ b/README.md @@ -525,16 +525,8 @@ framework like GTK or Qt. So this might be a trip down the rabbit hole. ### Using macOS -You need to install at least the following tools specific to macOS. - - * flock (used by APPDIR build logic) - -A macOS port is available at: - - brew tap discoteq/discoteq - brew install flock - - If you want to build the sim: +You need to install at least the following tools specific to macOS +if you want to build the sim: * Xcode (the native compiler and the rest of the toolchain) diff --git a/boards/Board.mk b/boards/Board.mk index 7e642d24d9..29ebe291ba 100644 --- a/boards/Board.mk +++ b/boards/Board.mk @@ -105,12 +105,7 @@ $(CXXOBJS) $(LINKOBJS): %$(OBJEXT): %.cxx $(call COMPILEXX, $<, $@) libboard$(LIBEXT): $(OBJS) $(CXXOBJS) -ifneq ($(OBJS),) - $(call ARCHIVE, $@, $(OBJS)) -endif -ifneq ($(CXXOBJS),) - $(call ARCHIVE, $@, $(CXXOBJS)) -endif + $(call ARCHIVE, $@, $(OBJS) $(CXXOBJS)) .depend: Makefile $(SRCS) $(CXXSRCS) $(RCSRCS) $(TOPDIR)$(DELIM).config ifneq ($(ZDSVERSION),) diff --git a/libs/libc/zoneinfo/Makefile b/libs/libc/zoneinfo/Makefile index 919fdab81f..d6e66361c3 100644 --- a/libs/libc/zoneinfo/Makefile +++ b/libs/libc/zoneinfo/Makefile @@ -61,7 +61,7 @@ $(COBJS): %$(OBJEXT): %.c $(call COMPILE, $<, $@) .built: .tzbuilt romfs $(OBJS) - $(call ARCHIVE, ..$(DELIM)$(BIN), $(OBJS)) + $(call ARCHIVE_ADD, ..$(DELIM)$(BIN), $(OBJS)) $(Q) touch .built # ROMFS file system containing the TZ database diff --git a/tools/Config.mk b/tools/Config.mk index eea069a71c..c04d4e1324 100644 --- a/tools/Config.mk +++ b/tools/Config.mk @@ -300,8 +300,8 @@ define INSTALL_LIB $(Q) install -m 0644 $1 $2 endef -# ARCHIVE - Add a list of files to an archive -# Example: $(call ARCHIVE, archive-file, "file1 file2 file3 ...") +# ARCHIVE_ADD - Add a list of files to an archive +# Example: $(call ARCHIVE_ADD, archive-file, "file1 file2 file3 ...") # # Note: The fileN strings may not contain spaces or characters that may be # interpreted strangely by the shell @@ -316,8 +316,18 @@ endef # # CONFIG_WINDOWS_NATIVE - Defined for a Windows native build +define ARCHIVE_ADD + @echo "AR (add): $(notdir $1) $(2)" + $(Q) $(AR) $1 $(2) +endef + +# ARCHIVE - Same as above, but ensure the archive is +# created from scratch + define ARCHIVE - $(AR) $1 $(2) + @echo "AR (create): $(notdir $1) $(2)" + $(Q) $(RM) $1 + $(Q) $(AR) $1 $(2) endef # PRELINK - Prelink a list of files