mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-28 11:43:25 +02:00
Fix alsa kmod build on buildsystems with ipfire kernel
Fix updater directory permission/owner handling
This commit is contained in:
2
lfs/alsa
2
lfs/alsa
@@ -95,7 +95,7 @@ ifeq "$(KMOD)" "1"
|
||||
cd $(DIR_SRC) && tar xfj $(DIR_DL)/alsa-driver-$(VER).tar.bz2
|
||||
cd $(DIR_SRC)/alsa-driver-$(VER) && sed -i -e "s| soc/ | |g" Makefile
|
||||
cd $(DIR_SRC)/alsa-driver-$(VER) && sed -i -e "s| soc||g" Makefile
|
||||
cd $(DIR_SRC)/alsa-driver-$(VER) && ./configure
|
||||
cd $(DIR_SRC)/alsa-driver-$(VER) && ./configure --with-kernel=/usr/src/linux
|
||||
cd $(DIR_SRC)/alsa-driver-$(VER) && make
|
||||
cd $(DIR_SRC)/alsa-driver-$(VER) && make install
|
||||
else
|
||||
|
||||
@@ -91,7 +91,7 @@ $(subst %,%_MD5,$(objects)) :
|
||||
|
||||
$(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
|
||||
@$(PREBUILD)
|
||||
@rm -rf $(DIR_APP) $(DIR_SRC)/linux $(DIR_SRC)/xen-* && cd $(DIR_SRC) && tar jxf $(DIR_DL)/$(DL_FILE)
|
||||
@rm -rf $(DIR_APP) $(DIR_SRC)/linux* $(DIR_SRC)/xen-* && cd $(DIR_SRC) && tar jxf $(DIR_DL)/$(DL_FILE)
|
||||
ln -s linux-$(VER) /usr/src/linux
|
||||
|
||||
# Security fix for CIFS & Netfilter SNMP
|
||||
|
||||
@@ -60,7 +60,7 @@ $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
|
||||
-f /$(SNAME).tar --exclude='#*' --exclude='dev/pts/*' \
|
||||
--exclude='proc/*' --exclude='tmp/ROOTFILES'
|
||||
mv -f /tmp/ROOTFILES /install/updater/ROOTFILES
|
||||
tar -x -C /tmp -f /$(SNAME).tar
|
||||
tar --preserve --numeric-owner -x -C /tmp -f /$(SNAME).tar
|
||||
rm -f /$(SNAME).tar
|
||||
cd /tmp && tar cf /install/updater/files * && rm -rf *
|
||||
cat /install/updater/ROOTFILES | grep -v "#" > /install/updater/ROOTFILES.tmp
|
||||
|
||||
Reference in New Issue
Block a user