X-Git-Url: http://gitweb.hugovil.com/?a=blobdiff_plain;f=stage3%2Fcis-unzip;h=24295b282037214416cdb6f29598e98e20f6c139;hb=c7661f97e457894b8f06622f0fe49d2bb9f8b728;hp=107b4cba53bb7da9c84dda9e3fc8723ed740d099;hpb=8c1ceecd26d41af612337eb87f51fa1d353d6c8a;p=hvlinux.git diff --git a/stage3/cis-unzip b/stage3/cis-unzip index 107b4cb..24295b2 100755 --- a/stage3/cis-unzip +++ b/stage3/cis-unzip @@ -8,13 +8,24 @@ source ../sysinfos source ../functions source ../packages-list +PACKAGE=${1} +shift +CONFIGURE_OPTS=${*} + # Applying patches (if any) -apply_patches ${1} +apply_patches ${PACKAGE} + +case "${HVL_TARGET}" in + "x86_64") + UNZIP_TARGET=linux_noasm + ;; + *) + UNZIP_TARGET=linux +esac -cd ${LFS_TMP}/${1} -make -f unix/Makefile LOCAL_UNZIP=-D_FILE_OFFSET_BITS=64 linux +cd ${LFS_TMP}/${PACKAGE} +make -f unix/Makefile LOCAL_UNZIP=-D_FILE_OFFSET_BITS=64 ${UNZIP_TARGET} make prefix=/usr install ldconfig -# Return last error exit $?