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