Fix libcap build on some architectures; Fix some issues with shell startup

scripts; Improve firmware Makefile; Fix messages in hhl.staticlib.mk
This commit is contained in:
Nathan Fisher 2022-09-01 09:03:41 -04:00
parent 2f9598382b
commit 10afb1cd9b
9 changed files with 23 additions and 19 deletions

View File

@ -9,7 +9,7 @@ objdir = $(srcdir)
install_firmware: $(objdir)/.installed
$(objdir)/.installed: $(srcdir)/.dirstamp | $(DESTDIR)/lib/firmware
cp -Rv $(srcdir)/* $(DESTDIR)/lib/firmware
$(MAKE) DESTDIR=$(DESTDIR) -C $(srcdir) install
$(DESTDIR)/lib/firmware:
install -d $@

View File

@ -26,6 +26,7 @@ $(libdir)/$(staticlib): $(staticlib) | $(libdir)
install $< $@
clean:
$(info $(grn)=== Cleaning for $(staticlib) ===$(reset))
rm -rf $(objdir) $(staticlib)
.PHONY: all clean

View File

@ -1,8 +1,8 @@
# Setup for /bin/ls and /bin/grep to support color, the alias is in /etc/bashrc.
if [ -f "/etc/dircolors" ] ; then
eval $(dircolors -b /etc/dircolors)
if [ -f "/etc/dircolors" ]
then eval $(dircolors -b /etc/dircolors)
fi
if [ -f "$HOME/.dircolors" ] ; then
eval $(dircolors -b $HOME/.dircolors)
if [ -f "$HOME/.dircolors" ]
then eval $(dircolors -b $HOME/.dircolors)
fi

View File

@ -15,8 +15,10 @@ fi
if [ -x /usr/pkg/share/man ]
then MANPATH=/usr/pkg/share/man:${MANPATH}
fi
if [ -x /usr/pkg/man ]
then MANPATH=/usr/pkg/man:${MANPATH}
fi
if [ -x /usr/pkg/share/info ]
then INFOPATH=/usr/pkg/share/info:${INFOPATH}
fi
PKG_PATH=https://hitchhiker-linux.org/pub/${OS_VERSION}/${arch}/packages
export PATH PKG_CONFIG_PATH MANPATH INFOPATH PKG_PATH
export PATH PKG_CONFIG_PATH MANPATH INFOPATH

View File

@ -5,9 +5,7 @@ else
PATH=/usr/bin:/bin
if [ -d /usr/local/bin ] ; then PATH=/usr/local/bin:${PATH} ; fi
fi
if [ -d ${HOME}/bin ]
then PATH=${HOME}/bin:PATH
fi
if [ -d ${HOME}/bin ] ; then PATH=${HOME}/bin:${PATH} ; fi
export PATH
for script in /etc/zshenv.d/*.zsh
do source ${script}

View File

@ -1,8 +1,8 @@
# Setup for /bin/ls and /bin/grep to support color, the alias is in /etc/bashrc.
if [ -f "/etc/dircolors" ] ; then
eval $(dircolors -b /etc/dircolors)
if [ -f "/etc/dircolors" ]
then eval $(dircolors -b /etc/dircolors)
fi
if [ -f "$HOME/.dircolors" ] ; then
eval $(dircolors -b $HOME/.dircolors)
if [ -f "$HOME/.dircolors" ]
then eval $(dircolors -b $HOME/.dircolors)
fi

View File

@ -15,6 +15,9 @@ fi
if [ -x /usr/pkg/share/man ]
then MANPATH=/usr/pkg/share/man:${MANPATH}
fi
if [ -x /usr/pkg/man ]
then MANPATH=/usr/pkg/man:${MANPATH}
fi
if [ -x /usr/pkg/share/info ]
then INFOPATH=/usr/pkg/share/info:${INFOPATH}
fi

View File

@ -11,6 +11,6 @@ makeflags += lib=lib
export BUILD_CC = gcc
export SYSROOT = $(DESTDIR)
export CROSS_COMPILE = $(tgt)-
export COPTS = -O2 --sysroot=$(DESTDIR)
export COPTS = -O2
post_install = chmod 755 $(DESTDIR)/lib/libcap.so.$(libcap_version)
include targets.mk