Regression: make O=... deb-pkg broken in 3.16

Ilya Dryomov
2014-06-15T10:51:12Z

Hi Michal,

Your relative path changes in the first kbuild pull request for 3.16
broke make O=... deb-pkg.

/home/ubuntu/foo/linux-a/scripts/package/builddeb: line 291:
./debian/hdrsrcfiles: No such file or directory

290 # Build header package
291 (cd $srctree; find . -name Makefile\* -o -name Kconfig\* -o -name
\*.pl > "$objtree/debian/hdrsrcfiles")
292 (cd $srctree; find arch/$SRCARCH/include include scripts -type f
>> "$objtree/debian/hdrsrcfiles")

The $objtree passed in is a '.' and hence the hdrsrcfiles path is
interpreted relative to the $srctree, which, if building with O=,
doesn't have a 'debian' directory.

Thanks,

Ilya