mirror of
ssh://git.janware.com/srv/git/janware/proj/jw-pkg
synced 2026-01-23 22:40:38 +01:00
linux-rpm.mk: Started implementing .bz2 support (not finished)
This commit is contained in:
parent
d8d2b867fc
commit
668e993cb9
1 changed files with 9 additions and 3 deletions
|
|
@ -109,7 +109,7 @@ toplevel-makefile: patches.done
|
||||||
if ($$0 ~ /EXTRAVERSION *= *-/) { \
|
if ($$0 ~ /EXTRAVERSION *= *-/) { \
|
||||||
oldextra=$$3; \
|
oldextra=$$3; \
|
||||||
gsub(/-/,_,oldextra); \
|
gsub(/-/,_,oldextra); \
|
||||||
printf "EXTRAVERSION = -%s_%s \n", release, oldextra \
|
printf "EXTRAVERSION = -%s_%s\n", release, oldextra \
|
||||||
} else if ($$0 ~ /EXTRAVERSION *= *$$/) { \
|
} else if ($$0 ~ /EXTRAVERSION *= *$$/) { \
|
||||||
printf "EXTRAVERSION = -%s\n",release \
|
printf "EXTRAVERSION = -%s\n",release \
|
||||||
} else { \
|
} else { \
|
||||||
|
|
@ -123,8 +123,13 @@ linux-$(KERNEL_VERSION)/Makefile: toplevel-makefile
|
||||||
cp $< $@
|
cp $< $@
|
||||||
|
|
||||||
unpack.done: $(KERNEL_PKG)
|
unpack.done: $(KERNEL_PKG)
|
||||||
rm -rf linux-$(KERNEL_VERSION)-$(KERNEL_RELEASE)
|
rm -rf linux-$(KERNEL_VERSION)
|
||||||
|
ifeq ($(suffix $(KERNEL_PKG)),.gz)
|
||||||
tar -xzf $(KERNEL_PKG)
|
tar -xzf $(KERNEL_PKG)
|
||||||
|
endif
|
||||||
|
ifeq ($(suffix $(KERNEL_PKG)),.bz2)
|
||||||
|
tar -xjf $(KERNEL_PKG)
|
||||||
|
endif
|
||||||
touch $@
|
touch $@
|
||||||
|
|
||||||
%.lxdone: unpack.done config-$(KERNEL_VERSION) $(LOCAL_PRE_BUILD) linux-$(KERNEL_VERSION)/Makefile
|
%.lxdone: unpack.done config-$(KERNEL_VERSION) $(LOCAL_PRE_BUILD) linux-$(KERNEL_VERSION)/Makefile
|
||||||
|
|
@ -258,8 +263,9 @@ dist: clean
|
||||||
tar -czf kernel.tar.gz `find kernel -type f -maxdepth 1 | grep -ve "setup\|trash\|CVS"`
|
tar -czf kernel.tar.gz `find kernel -type f -maxdepth 1 | grep -ve "setup\|trash\|CVS"`
|
||||||
mv ../kernel.tar.gz .
|
mv ../kernel.tar.gz .
|
||||||
clean:
|
clean:
|
||||||
|
rm -rf $(TMP_INSTALL)
|
||||||
rm -rf install/* reiser.patch *~ *.done *.lxdone *.uldone *.patch *.rpm *.tar.gz *.tar $(SCOPE_DRIVER_BASE)
|
rm -rf install/* reiser.patch *~ *.done *.lxdone *.uldone *.patch *.rpm *.tar.gz *.tar $(SCOPE_DRIVER_BASE)
|
||||||
rm -rf linux linux-$(KERNEL_VERSION) $(TMP_INSTALL) CURRENT_*
|
rm -rf linux linux-$(KERNEL_VERSION) CURRENT_*
|
||||||
rm -f toplevel-makefile
|
rm -f toplevel-makefile
|
||||||
|
|
||||||
newrelease:
|
newrelease:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue