hbc-FIX94/channel/title/Makefile

51 lines
1.3 KiB
Makefile
Raw Normal View History

2016-11-23 06:35:12 +01:00
INSTALLER_VER_MAJOR = 1
INSTALLER_VER_MINOR = 2
TOOLS = $(CURDIR)/../../pywii/pywii-tools
CERTS = $(CURDIR)/dpki/certs
DPKI_ISSUER_TIK = Root-CA00000002-XS00000006
DPKI_ISSUER_TMD = Root-CA00000002-CP00000007
all: channel_retail.wad
dpki: channel_dpki.wad
channel_retail.wad: retail/cetk retail/tmd 00000000 00000001
@$(TOOLS)/wadpack.py $@ retail/
channel_dpki.wad: dpki/cetk dpki/tmd 00000000 00000001
@$(TOOLS)/wadpack.py -dpki $@ dpki/
00000000: ../banner/channel.imet
@cat footer $< > $@
00000001: ../channelapp/channelapp-channel.dol
@cp $< $@
retail/cetk: cetk.template
@cp $< $@
@$(TOOLS)/tikfix.py $@
dpki/cetk: retail/cetk
@$(TOOLS)/dpkisign.py -cetk $< $@ $(CERTS) $(DPKI_ISSUER_TIK)
retail/tmd: tmd.template 00000000 00000001
@cp $< $@
@$(TOOLS)/tmdupdatecr.py $@ $(CURDIR)
@$(TOOLS)/tmdvers.py $@ $(INSTALLER_VER_MAJOR) $(INSTALLER_VER_MINOR)
dpki/tmd: retail/tmd
@$(TOOLS)/dpkisign.py -tmd $< $@ $(CERTS) $(DPKI_ISSUER_TMD)
2016-11-24 09:28:03 +01:00
check: all dpki
2016-11-23 06:35:12 +01:00
@echo ===== RETAIL =====
2016-11-24 09:28:03 +01:00
@$(TOOLS)/tikinfo.py retail/cetk retail/certs
@$(TOOLS)/tmdinfo.py retail/tmd retail/certs
2016-11-23 06:35:12 +01:00
@echo ===== DPKI =====
2016-11-24 09:28:03 +01:00
@$(TOOLS)/tikinfo.py -dpki dpki/cetk dpki/certs
@$(TOOLS)/tmdinfo.py -dpki dpki/tmd dpki/certs
2016-11-23 06:35:12 +01:00
clean:
2016-11-24 09:05:58 +01:00
rm -f retail/cetk dpki/cetk retail/tmd retail/tmd 00000000 00000001 channel_retail.wad channel_dpki.wad
2016-11-23 06:35:12 +01:00