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