Skip to content

Commit

Permalink
DEBUG code
Browse files Browse the repository at this point in the history
  • Loading branch information
The-going committed Sep 5, 2021
1 parent 72def00 commit 6bd8dca
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions packages/armbian/builddeb
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,32 @@ EOT
dpkg-deb --build "$pdir" ..
}

debug_deploy_kernel_headers () {
step=$1

(
cd $srctree
find . -name Makefile\* -o -name Kconfig\* -o -name \*.pl
find arch/*/include include scripts -type f -o -type l
find security/*/include -type f
find arch/$SRCARCH -name module.lds -o -name Kbuild.platforms -o -name Platform
find $(find arch/$SRCARCH -name include -o -name scripts -type d) -type f
) > debian/hdrsrcfiles-$step

{
if is_enabled CONFIG_STACK_VALIDATION; then
# echo tools/objtool/objtool
find tools/objtool -type f -executable
fi

find arch/$SRCARCH/include Module.symvers include scripts -type f

if is_enabled CONFIG_GCC_PLUGINS; then
find scripts/gcc-plugins -name \*.so -o -name gcc-common.h
fi
} > debian/hdrobjfiles-$step
}

deploy_kernel_headers () {
pdir=$1

Expand Down Expand Up @@ -334,11 +360,18 @@ if [ "$ARCH" != "um" ]; then
deploy_libc_headers $libc_headers_dir
create_package $libc_headers_packagename $libc_headers_dir

#DEBUG
debug_deploy_kernel_headers pre

if is_enabled CONFIG_MODULES; then
deploy_kernel_headers $kernel_headers_dir
create_package $kernel_headers_packagename $kernel_headers_dir "headers"
fi

#DEBUG
(cd $srctree; make M=scripts clean;)
debug_deploy_kernel_headers postclean

create_package "$dtb_packagename" "$dtb_dir" "dtb"
fi

Expand Down

0 comments on commit 6bd8dca

Please sign in to comment.