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
1b7eeb8
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
4ac96cb
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
1b7eeb8
config-files:
1b7eeb8
	@./build_configs.sh
Roland McGrath 377da6d
1b7eeb8
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
1b7eeb8
release:
1b7eeb8
	@perl -pi -e 's/^%define debugbuildsenabled 0/%define debugbuildsenabled 1/' kernel.spec
1b7eeb8
	@rpmdev-bumpspec -c "Disable debugging options." kernel.spec
1b7eeb8
Kyle McMartin ccb40e6
nodebuginfo:
Kyle McMartin ccb40e6
	@perl -pi -e 's/^%define with_debuginfo %\{\?_without_debuginfo: 0\} %\{\?\!_without_debuginfo: 1\}/%define with_debuginfo %\{\?_without_debuginfo: 0\} %\{\?\!_without_debuginfo: 0\}/' kernel.spec
1b7eeb8
Kyle McMartin a8df49e
nodebug: release
Kyle McMartin a8df49e
	@perl -pi -e 's/^%define debugbuildsenabled 1/%define debugbuildsenabled 0/' kernel.spec
Chuck Ebbert c6b36e0
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