7afd2bbf84
I am planning to write a document for new man, helping them to build a working image from knowing nothing about Coreboot. The previous LinuxBIOS-AMD64.tex was a good script. LinuxBIOS was a out-of-date name. It needs to be changed it to Coreboot. And the new document is not specific to AMD, so we get rid of the AMD64 from the file name. This is a separate patch for the renaming. LinuxBIOS-AMD64.tex was still about SVN and buildtarget. Later patch will come up for updating those old thing. And this new document, CorebootBuildingGuide.tex, is planning to be only about building. Navigating the source code is moved to later advanced document. Change-Id: Ia8a2fd9db51e9870c1d645067bcfdc91ae1bf90a Signed-off-by: Zheng Bao <zheng.bao@amd.com> Signed-off-by: Zheng Bao <fishbaozi@gmail.com> Reviewed-on: http://review.coreboot.org/4487 Tested-by: build bot (Jenkins) Reviewed-by: Patrick Georgi <patrick@georgi-clan.de>
71 lines
1.9 KiB
Makefile
71 lines
1.9 KiB
Makefile
#
|
|
# Makefile for coreboot paper.
|
|
# hacked together by Stefan Reinauer <stepan@openbios.org>
|
|
#
|
|
|
|
PDFLATEX=pdflatex -t a4
|
|
|
|
FIGS=codeflow.pdf hypertransport.pdf
|
|
|
|
all: CorebootPortingGuide.pdf Kconfig.pdf
|
|
|
|
SVG2PDF=$(shell which svg2pdf)
|
|
INKSCAPE=$(shell which inkscape)
|
|
CONVERT=$(shell which convert)
|
|
|
|
codeflow.pdf: codeflow.svg
|
|
ifneq ($(strip $(SVG2PDF)),)
|
|
svg2pdf $< $@
|
|
else ifneq ($(strip $(INKSCAPE)),)
|
|
inkscape $< --export-pdf=$@
|
|
else ifneq ($(strip $(CONVERT)),)
|
|
convert $< $@
|
|
endif
|
|
|
|
hypertransport.pdf: hypertransport.svg
|
|
ifneq ($(strip $(SVG2PDF)),)
|
|
svg2pdf $< $@
|
|
else ifneq ($(strip $(INKSCAPE)),)
|
|
inkscape $< --export-pdf=$@
|
|
else ifneq ($(strip $(CONVERT)),)
|
|
convert $< $@
|
|
endif
|
|
|
|
CorebootPortingGuide.toc: $(FIGS) CorebootPortingGuide.tex
|
|
# 2 times to make sure we have a current toc.
|
|
$(PDFLATEX) CorebootPortingGuide.tex
|
|
$(PDFLATEX) CorebootPortingGuide.tex
|
|
|
|
CorebootPortingGuide.pdf: $(FIGS) CorebootPortingGuide.tex CorebootPortingGuide.toc
|
|
$(PDFLATEX) CorebootPortingGuide.tex
|
|
|
|
Kconfig.pdf: Kconfig.tex mainboardkconfig.tex cpukconfig.tex socketfkconfig.tex
|
|
$(PDFLATEX) $<
|
|
|
|
# quick, somebody! make me a macro!
|
|
mainboardkconfig.tex: ../src/mainboard/Kconfig
|
|
cat beginverbatim.tex > $@
|
|
grep '^config' $< | awk '{print $2}' >>$@
|
|
cat endverbatim.tex >> $@
|
|
|
|
skconfig.tex: ../src/mainboard/amd/serengeti_cheetah/Kconfig
|
|
cat beginverbatim.tex > $@
|
|
grep '^config' $< | awk '{print $2}' >>$@
|
|
cat endverbatim.tex >> $@
|
|
|
|
cpukconfig.tex: ../src/cpu/Kconfig
|
|
cat beginverbatim.tex > $@
|
|
grep '^config' $< | awk '{print $2}' >>$@
|
|
cat endverbatim.tex >> $@
|
|
|
|
socketfkconfig.tex: ../src/cpu/amd/socket_F/Kconfig
|
|
cat beginverbatim.tex > $@
|
|
grep '^config' $< | awk '{print $2}' >>$@
|
|
cat endverbatim.tex >> $@
|
|
|
|
clean:
|
|
rm -f *.aux *.idx *.log *.toc *.out $(FIGS) mainboardkconfig.tex skconfig.tex cpukconfig.tex socketfkconfig.tex
|
|
|
|
distclean: clean
|
|
rm -f CorebootPortingGuide.pdf Kconfig.pdf
|
|
|