Ignore:
Timestamp:
Jul 11, 2010, 7:14:26 PM (10 years ago)
Author:
amain
Message:

Make debwrt-kernel-headers auto use compiled openwrt kernel-headers or if not the default in the svn repo

File:
1 edited

Legend:

Unmodified
Added
Removed
  • debwrt/trunk/debian/package/debwrt-kernel-headers/debwrt-kernel-headers.sh

    r52 r54  
    1111[ "1" == $VERBOSE ] && set -x
    1212
    13 # linux-headers-2.6.32.14
     13export KERNEL_HEADERS_TAR_GZ=`ls debwrt-headers-*.tar.gz | sort | tail -1`
     14
    1415PACKAGE=debwrt-kernel-headers
    15 VERSION=2.6.32.14
     16VERSION=`echo $KERNEL_HEADERS_TAR_GZ | awk -F "-" '{print $6}'`
    1617RELEASE=1
    1718
     
    1920BUILD_BASE_DIR=${BASE_DIR}/${PACKAGE}
    2021BUILD_DIR=${BUILD_BASE_DIR}/${PACKAGE}-${VERSION}
    21 SOURCE_DIR=${BUILD_BASE_DIR}/linux-headers-${VERSION}
    22 DOWNLOAD_DIR=${BASE_DIR}/dl
    2322KCONF=${BUILD_BASE_DIR}/config-kernel-${VERSION}
    2423
    2524rm -rf ${BUILD_DIR}
    2625mkdir -p ${BUILD_DIR}
    27 cp -ra ${SOURCE_DIR} ${BUILD_DIR}
     26cp -ra ${KERNEL_HEADERS_TAR_GZ} ${BUILD_DIR}
    2827cp -a ${KCONF} ${BUILD_DIR}/.config
    2928
     
    3635   cd ${BUILD_DIR}
    3736   dch -v ${VERSION}-${RELEASE} -m -t "Automated packet generation"
    38    dpkg-buildpackage -a${ARCH} -rfakeroot -b
    39    find ${BUILD_BASE_DIR} -maxdepth 1 -name "*.deb"  | xargs -r -t -i sudo dpkg-cross -a ${ARCH} -i {} || true
     37   dpkg-buildpackage -a${ARCH:=mipsel} -rfakeroot -b
     38   find ${BUILD_BASE_DIR} -maxdepth 1 -name "*.deb"  | xargs -r -t -i sudo dpkg-cross -a ${ARCH:=mipsel} -i {} || true
    4039fi
    4140
Note: See TracChangeset for help on using the changeset viewer.