-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathGNUmakefile
61 lines (48 loc) · 1.16 KB
/
GNUmakefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
#
# Default stand alone makefile for kconfig.
#
# The Makefile and Makefile.br in this directory should
# not be called directly for standalone build.
# Actually they are included by this makefile.
#
##
# Makefile parameters.
#
# The parameters are configured as for kernel build
# by default. Override them for your application
# setting.
#
# TOP srcdir and this srcdir (relative to TOPDIR)
TOPDIR=.
SRCDIR=.
# O: output directory (objs/exes), default to src dir
O=$(TOPDIR)/$(SRCDIR)
# Build configuration
KBUILD_KCONFIG=Kconfig
ifndef KBUILD_DEFCONFIG
KBUILD_DEFCONFIG=defconfig
endif
# Product information (exported)
export PRODUCT_ENV=KCONFIG
export PRODUCT=Kernel
export PRODUCT_VERSION=<undefined version>
export PRODUCT_DOMAIN=kernel.org
# Kconfig configuration (exported)
export $(PRODUCT_ENV)_CONFIG=config
# End of Makefile parameters.
##
##
# Makefile adaptation/inclusion.
# Buid vars
HOSTCC=$(CC)
HOSTCXX=$(CXX)
HOSTCFLAGS=-O2 -g
HOSTCXXFLAGS=-O2 -g
srctree=$(TOPDIR)
src=$(TOPDIR)/$(SRCDIR)
obj=$(O)
# Enable execution from Makefile *conf programs
export PATH:=$(PATH):$(obj)
include $(TOPDIR)/$(SRCDIR)/Makefile.br
# End of Makefile adaptation/inclusion.
##