summaryrefslogtreecommitdiffstats
path: root/scripts/Makefile
blob: 784d205023d6a100c501bcb87febae34124836e7 (plain)
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
###
# scripts contains sources for various helper programs used throughout
# the kernel for the build process.
# ---------------------------------------------------------------------------
# kallsyms:      Find all symbols in barebox

hostprogs-$(CONFIG_KALLSYMS)     += kallsyms
hostprogs-y                      += bin2c
hostprogs-y                      += mkimage
hostprogs-y                      += bareboxenv
hostprogs-$(CONFIG_ARCH_NETX)    += gen_netx_image
hostprogs-$(CONFIG_ARCH_OMAP)    += omap_signGP
hostprogs-$(CONFIG_ARCH_S5PCxx)  += s5p_cksum

always		:= $(hostprogs-y) $(hostprogs-m)

subdir-y                     += mod

subdir-$(CONFIG_X86)             += setupmbr

# Let clean descend into subdirs
subdir-	+= basic kconfig setupmbr

quiet_cmd_csingle	= CC      $@
      cmd_csingle	= $(CC) -Wp,-MD,$(depfile) $(CFLAGS) -o $@ $<

obj-$(CONFIG_BAREBOXENV_TARGET)	+= bareboxenv-target

scripts/bareboxenv-target: scripts/bareboxenv.c FORCE
	$(call if_changed_dep,csingle)