Skip to content

Commit

Permalink
clean: builddeb
Browse files Browse the repository at this point in the history
Signed-off-by: Robert Nelson <robertcnelson@gmail.com>
  • Loading branch information
RobertCNelson committed Jun 19, 2015
1 parent 686d853 commit 4f877fc
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 49 deletions.
12 changes: 11 additions & 1 deletion 3rdparty/packaging/builddeb 100644 → 100755
Expand Up @@ -45,7 +45,7 @@ create_package() {
arm64)
debarch=arm64 ;;
arm*)
debarch=arm$(grep -q CONFIG_AEABI=y $KCONFIG_CONFIG && echo el || true) ;;
debarch=arm$(grep -q CONFIG_AEABI=y $KCONFIG_CONFIG && echo hf || true) ;;
*)
echo "" >&2
echo "** ** ** WARNING ** ** **" >&2
Expand Down Expand Up @@ -165,6 +165,16 @@ if grep -q '^CONFIG_MODULES=y' $KCONFIG_CONFIG ; then
fi
fi

if grep -q '^CONFIG_OF=y' $KCONFIG_CONFIG ; then
mkdir -p "$tmpdir/boot/dtbs/$version"
INSTALL_DTBS_PATH="$tmpdir/boot/dtbs/$version" $MAKE KBUILD_SRC= dtbs_install

#make dtbs_install seems to add an .old directory
if [ -d "$tmpdir/boot/dtbs/$version.old" ] ; then
rm -rf "$tmpdir/boot/dtbs/$version.old"
fi
fi

if [ "$ARCH" != "um" ]; then
$MAKE headers_check KBUILD_SRC=
$MAKE headers_install KBUILD_SRC= INSTALL_HDR_PATH="$libc_headers_dir/usr"
Expand Down
25 changes: 11 additions & 14 deletions patch.sh
Expand Up @@ -74,31 +74,28 @@ local_patch () {
#external_git
#local_patch

packaging_setup () {
cp -v "${DIR}/3rdparty/packaging/builddeb" "${DIR}/KERNEL/scripts/package"
git commit -a -m 'packaging: sync with mainline' -s

git format-patch -1 -o "${DIR}/patches/packaging"
exit 2
}

packaging () {
echo "dir: packaging"
#regenerate="enable"
if [ "x${regenerate}" = "xenable" ] ; then
cp -v "${DIR}/3rdparty/packaging/builddeb" "${DIR}/KERNEL/scripts/package"
git commit -a -m 'packaging: sync builddeb changes' -s
git format-patch -1 -o "${DIR}/patches/packaging"
else
${git} "${DIR}/patches/packaging/0001-packaging-sync-builddeb-changes.patch"
fi

if [ "x${regenerate}" = "xenable" ] ; then
start_cleanup
fi

${git} "${DIR}/patches/packaging/0001-packaging-sync-with-mainline.patch"
${git} "${DIR}/patches/packaging/0002-deb-pkg-install-dtbs-in-linux-image-package.patch"
#${git} "${DIR}/patches/packaging/0003-deb-pkg-no-dtbs_install.patch"
#${git} "${DIR}/patches/packaging/0002"

if [ "x${regenerate}" = "xenable" ] ; then
number=3
number=1
cleanup
fi
}

#packaging_setup
#packaging
packaging
echo "patch.sh ran successfully"

This file was deleted.

0 comments on commit 4f877fc

Please sign in to comment.