mkdebian (4b970e436523ed34da4ced74ad2b81e5a4f573f2) | mkdebian (d9287ea8ffc9be2ab4c81c32e1ca54478425ba38) |
---|---|
1#!/bin/sh 2# 3# Copyright 2003 Wichert Akkerman <wichert@wiggy.net> 4# 5# Simple script to generate a debian/ directory for a Linux kernel. 6 7set -e 8 --- 249 unchanged lines hidden (view full) --- 258Section: debug 259Architecture: $debarch 260Description: Linux kernel debugging symbols for $version 261 This package will come in handy if you need to debug the kernel. It provides 262 all the necessary debug symbols for the kernel and its modules. 263EOF 264fi 265 | 1#!/bin/sh 2# 3# Copyright 2003 Wichert Akkerman <wichert@wiggy.net> 4# 5# Simple script to generate a debian/ directory for a Linux kernel. 6 7set -e 8 --- 249 unchanged lines hidden (view full) --- 258Section: debug 259Architecture: $debarch 260Description: Linux kernel debugging symbols for $version 261 This package will come in handy if you need to debug the kernel. It provides 262 all the necessary debug symbols for the kernel and its modules. 263EOF 264fi 265 |
266cat <<EOF > debian/rules 267#!/usr/bin/make -f 268 269srctree ?= . 270KERNELRELEASE = ${KERNELRELEASE} 271 272.PHONY: clean build build-arch build-indep binary binary-arch binary-indep 273 274build-indep: 275build-arch: 276 \$(MAKE) -f \$(srctree)/Makefile ARCH=${ARCH} \ 277 KERNELRELEASE=\$(KERNELRELEASE) \ 278 \$(shell \$(srctree)/scripts/package/deb-build-option) \ 279 olddefconfig all 280 281build: build-arch 282 283binary-indep: 284binary-arch: build-arch 285 \$(MAKE) -f \$(srctree)/Makefile ARCH=${ARCH} \ 286 KERNELRELEASE=\$(KERNELRELEASE) \ 287 run-command KBUILD_RUN_COMMAND=+\$(srctree)/scripts/package/builddeb 288 289clean: 290 rm -rf debian/files debian/linux-* 291 \$(MAKE) -f \$(srctree)/Makefile ARCH=${ARCH} clean 292 293binary: binary-arch | 266cat <<EOF > debian/rules.vars 267ARCH := ${ARCH} 268KERNELRELEASE := ${KERNELRELEASE} |
294EOF | 269EOF |
295chmod +x debian/rules | |
296 | 270 |
271cp "${srctree}/scripts/package/debian/rules" debian/ 272 |
|
297exit 0 | 273exit 0 |