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
|
2017-10-08 01:59:33 +02:00
|
|
|
@cp -f 00000000 retail
|
|
|
|
@cp -f 00000001 retail
|
|
|
|
@cp -f footer retail
|
|
|
|
@python2 $(TOOLS)/wadpack.py $@ retail/
|
2016-11-23 06:35:12 +01:00
|
|
|
|
|
|
|
channel_dpki.wad: dpki/cetk dpki/tmd 00000000 00000001
|
2017-10-08 01:59:33 +02:00
|
|
|
@cp -f 00000000 retail
|
|
|
|
@cp -f 00000001 retail
|
|
|
|
@cp -f footer retail
|
|
|
|
@python2 $(TOOLS)/wadpack.py -dpki $@ dpki/
|
2016-11-23 06:35:12 +01:00
|
|
|
|
|
|
|
00000000: ../banner/channel.imet
|
|
|
|
@cat footer $< > $@
|
|
|
|
|
|
|
|
00000001: ../channelapp/channelapp-channel.dol
|
|
|
|
@cp $< $@
|
|
|
|
|
|
|
|
retail/cetk: cetk.template
|
|
|
|
@cp $< $@
|
2017-10-08 01:59:33 +02:00
|
|
|
@python2 $(TOOLS)/tikfix.py $@
|
2016-11-23 06:35:12 +01:00
|
|
|
|
|
|
|
dpki/cetk: retail/cetk
|
2017-10-08 01:59:33 +02:00
|
|
|
@python2 $(TOOLS)/dpkisign.py -cetk $< $@ $(CERTS) $(DPKI_ISSUER_TIK)
|
2016-11-23 06:35:12 +01:00
|
|
|
|
|
|
|
retail/tmd: tmd.template 00000000 00000001
|
|
|
|
@cp $< $@
|
2017-10-08 01:59:33 +02:00
|
|
|
@python2 $(TOOLS)/tmdupdatecr.py $@ $(CURDIR)
|
|
|
|
@python2 $(TOOLS)/tmdvers.py $@ $(INSTALLER_VER_MAJOR) $(INSTALLER_VER_MINOR)
|
2016-11-23 06:35:12 +01:00
|
|
|
|
|
|
|
dpki/tmd: retail/tmd
|
2017-10-08 01:59:33 +02:00
|
|
|
@python2 $(TOOLS)/dpkisign.py -tmd $< $@ $(CERTS) $(DPKI_ISSUER_TMD)
|
2016-11-23 06:35:12 +01:00
|
|
|
|
2016-11-24 09:28:03 +01:00
|
|
|
check: all dpki
|
2016-11-23 06:35:12 +01:00
|
|
|
@echo ===== RETAIL =====
|
2017-10-08 01:59:33 +02:00
|
|
|
@python2 $(TOOLS)/tikinfo.py retail/cetk retail/certs
|
|
|
|
@python2 $(TOOLS)/tmdinfo.py retail/tmd retail/certs
|
2016-11-23 06:35:12 +01:00
|
|
|
@echo ===== DPKI =====
|
2017-10-08 01:59:33 +02:00
|
|
|
@python2 $(TOOLS)/tikinfo.py -dpki dpki/cetk dpki/certs
|
|
|
|
@python2 $(TOOLS)/tmdinfo.py -dpki dpki/tmd dpki/certs
|
2016-11-23 06:35:12 +01:00
|
|
|
|
|
|
|
clean:
|
2017-10-12 21:28:56 +02:00
|
|
|
rm -f retail/cetk dpki/cetk retail/tmd dpki/tmd retail/footer dpki/footer 00000000 00000001 \
|
|
|
|
retail/00000000 retail/00000001 dpki/00000000 dpki/00000001 channel_retail.wad channel_dpki.wad
|
2016-11-23 06:35:12 +01:00
|
|
|
|