Roland McGrath 377da6d
# Makefile for source rpm: kernel
Roland McGrath 377da6d
SPECFILE := kernel.spec
Roland McGrath 377da6d
Roland McGrath 377da6d
# we only check the .sign signatures
Roland McGrath 377da6d
UPSTREAM_CHECKS = sign
Roland McGrath 377da6d
Roland McGrath 377da6d
.PHONY: help
Roland McGrath 377da6d
help:
Roland McGrath 377da6d
%:
Roland McGrath 377da6d
	@echo "Try fedpkg $@ or something like that"
Roland McGrath 377da6d
	@exit 1
Roland McGrath 377da6d
a98ed5c
prep: config-files
Dave Jones fc31f43
	fedpkg -v prep
Chuck Ebbert fcfd3c7
Kyle McMartin 76f1696
noarch:
Kyle McMartin 76f1696
	fedpkg -v local --arch=noarch
Kyle McMartin 76f1696
Kyle McMartin 76f1696
# 'make local' also needs to build the noarch firmware package
6116861
local:
Kyle McMartin 76f1696
	fedpkg -v local
Kyle McMartin 76f1696
Roland McGrath 377da6d
extremedebug:
Roland McGrath 377da6d
	@perl -pi -e 's/# CONFIG_DEBUG_PAGEALLOC is not set/CONFIG_DEBUG_PAGEALLOC=y/' config-nodebug
Roland McGrath 377da6d
a98ed5c
config-files:
a98ed5c
	@./build_configs.sh
Roland McGrath 377da6d
a98ed5c
debug:
Roland McGrath 377da6d
	@perl -pi -e 's/^%define debugbuildsenabled 1/%define debugbuildsenabled 0/' kernel.spec
Dave Jones 086827d
	@rpmdev-bumpspec -c "Reenable debugging options." kernel.spec
Roland McGrath 377da6d
a98ed5c
release:
Roland McGrath 377da6d
	@perl -pi -e 's/^%define debugbuildsenabled 0/%define debugbuildsenabled 1/' kernel.spec
Dave Jones 086827d
	@rpmdev-bumpspec -c "Disable debugging options." kernel.spec
Roland McGrath 377da6d
a98ed5c
nodebuginfo:
a98ed5c
	@perl -pi -e 's/^%define with_debuginfo %\{\?_without_debuginfo: 0\} %\{\?\!_without_debuginfo: 1\}/%define with_debuginfo %\{\?_without_debuginfo: 0\} %\{\?\!_without_debuginfo: 0\}/' kernel.spec
Chuck Ebbert c6b36e0
a98ed5c
nodebug: release
a98ed5c
	@perl -pi -e 's/^%define debugbuildsenabled 1/%define debugbuildsenabled 0/' kernel.spec
Roland McGrath 377da6d
08e6eed
ifeq ($(MAKECMDGOALS),me a sandwich)
08e6eed
.PHONY: me a sandwich
08e6eed
me a:
08e6eed
	@:
08e6eed
08e6eed
sandwich:
08e6eed
	@[ `id -u` -ne 0 ] && echo "What? Make it yourself." || echo Okay.
08e6eed
endif