2010-07-30 01:35:15 +00:00
|
|
|
# Makefile for source rpm: kernel
|
|
|
|
SPECFILE := kernel.spec
|
|
|
|
|
|
|
|
# we only check the .sign signatures
|
|
|
|
UPSTREAM_CHECKS = sign
|
|
|
|
|
|
|
|
.PHONY: help
|
|
|
|
help:
|
|
|
|
%:
|
|
|
|
@echo "Try fedpkg $@ or something like that"
|
|
|
|
@exit 1
|
|
|
|
|
2017-02-20 19:20:23 +00:00
|
|
|
prep: config-files
|
2012-03-30 19:22:42 +00:00
|
|
|
fedpkg -v prep
|
2010-08-02 02:02:45 +00:00
|
|
|
|
2011-10-26 18:38:50 +00:00
|
|
|
noarch:
|
|
|
|
fedpkg -v local --arch=noarch
|
|
|
|
|
|
|
|
# 'make local' also needs to build the noarch firmware package
|
2016-05-17 13:03:07 +00:00
|
|
|
local:
|
2011-10-26 18:38:50 +00:00
|
|
|
fedpkg -v local
|
|
|
|
|
2010-07-30 01:35:15 +00:00
|
|
|
extremedebug:
|
|
|
|
@perl -pi -e 's/# CONFIG_DEBUG_PAGEALLOC is not set/CONFIG_DEBUG_PAGEALLOC=y/' config-nodebug
|
|
|
|
|
2017-02-20 19:20:23 +00:00
|
|
|
config-files:
|
|
|
|
@./build_configs.sh
|
2010-07-30 01:35:15 +00:00
|
|
|
|
2017-02-20 19:20:23 +00:00
|
|
|
debug:
|
2010-07-30 01:35:15 +00:00
|
|
|
@perl -pi -e 's/^%define debugbuildsenabled 1/%define debugbuildsenabled 0/' kernel.spec
|
2012-01-05 01:37:16 +00:00
|
|
|
@rpmdev-bumpspec -c "Reenable debugging options." kernel.spec
|
2010-07-30 01:35:15 +00:00
|
|
|
|
2017-02-20 19:20:23 +00:00
|
|
|
release:
|
2010-07-30 01:35:15 +00:00
|
|
|
@perl -pi -e 's/^%define debugbuildsenabled 0/%define debugbuildsenabled 1/' kernel.spec
|
2012-01-05 01:37:16 +00:00
|
|
|
@rpmdev-bumpspec -c "Disable debugging options." kernel.spec
|
2010-07-30 01:35:15 +00:00
|
|
|
|
2017-02-20 19:20:23 +00:00
|
|
|
nodebuginfo:
|
|
|
|
@perl -pi -e 's/^%define with_debuginfo %\{\?_without_debuginfo: 0\} %\{\?\!_without_debuginfo: 1\}/%define with_debuginfo %\{\?_without_debuginfo: 0\} %\{\?\!_without_debuginfo: 0\}/' kernel.spec
|
2011-10-23 04:17:53 +00:00
|
|
|
|
2017-02-20 19:20:23 +00:00
|
|
|
nodebug: release
|
|
|
|
@perl -pi -e 's/^%define debugbuildsenabled 1/%define debugbuildsenabled 0/' kernel.spec
|
2010-07-30 01:35:15 +00:00
|
|
|
|
2011-10-13 15:52:10 +00:00
|
|
|
ifeq ($(MAKECMDGOALS),me a sandwich)
|
|
|
|
.PHONY: me a sandwich
|
|
|
|
me a:
|
|
|
|
@:
|
|
|
|
|
|
|
|
sandwich:
|
|
|
|
@[ `id -u` -ne 0 ] && echo "What? Make it yourself." || echo Okay.
|
|
|
|
endif
|