Skip to content

redhat: Fix PACKAGE_NAME variable

Prarit Bhargava requested to merge prarit/kernel-ark:PACKAGE_NAME into os-build

The PACKAGE_NAME variable description implies that 'make
PACKAGE_NAME="foo" dist-all-rpms' will create a set of rpms with Name
"foo". This, unfortunately, does not work.

The PACKAGE_NAME variable must be first renamed to SPECPACKAGE_NAME to
comply with the naming convention for Makefile variables that are passed
into the kernel spec file. In addition to that there are several other
cases where 'kernel' is hardcoded in the scripts and spec files. And
lastly, the Makefile assumes that the kernel spec file is always called
"kernel.spec".

Fix these issues, and allow users to set the kernel rpm Name by setting
SPECPACKAGE_NAME.

Signed-off-by: Prarit Bhargava prarit@redhat.com

Edited by Prarit Bhargava

Merge request reports