・Linux + HSM でのビルドがデフォルトになるよう、Makefileを修正。

・デフォルトでDEBUG_PRINTをオフにする。
・2010/1/13のリリースに向けて、CR_GEN_ID_VERSIONを"2"にする。

git-svn-id: file:///Volumes/Transfer/gigaleak_20231201/2020-09-30%20-%20paladin.7z/paladin/ctr_eFuse@165 ff987cc8-cf2f-4642-8568-d52cce064691
This commit is contained in:
(no author) 2010-01-08 08:07:22 +00:00
parent 973bdd8c58
commit dda074ee8b
4 changed files with 5 additions and 63 deletions

View File

@ -9,8 +9,8 @@
# DEV_CYGWIN = FALSE
# USE_HSM = TRUE
DEV_CYGWIN = TRUE
#USE_HSM = TRUE
DEV_CYGWIN = FALSE
USE_HSM = TRUE
ifeq ($(USE_HSM),TRUE)

View File

@ -129,7 +129,7 @@ extern "C" {
#include <openssl/ec.h>
#include "ec_lcl.h" // EC_KEY (=ec_key_st) 構造体の参照に必要
#define DEBUG_PRINT 1
//#define DEBUG_PRINT 1
//#define DEBUG_DEVICE_CERT_OUTPUT_FILE
//#define DEBUG_EFUSE_ID_OUTPUT_FILE
@ -141,7 +141,8 @@ extern "C" {
#define ENCRYPT_AES 1 // 定義を有効でFIX.これが未定義の場合、IDの暗号化がRSAになる。
#define CR_GEN_ID_VERSION 1
#define CR_GEN_ID_VERSION 2 // シャープへのリリースごとにUPする。
// 2010/01/13 Release ver.2
#ifdef USE_HSM
#define CR_GEN_ID_MAGICCODE 0xdeadb00f; /* 最終的にはこちらで動作。0xdeadbeefにするとRSAでコケる。 */
#else // !USE_HSM

View File

@ -1,27 +0,0 @@
#!c:/tcsh/tcsh.exe
set mydir="cr_generate_id"
set myfiles="Makefile.sharp main.c cr_generate_id.h libgenid.a readme_openssl.txt LICENSE_en.txt LICENSE_jp.txt readme.txt readme_openssl.txt"
if(-e $mydir.zip) then
rm -f $mydir.zip
endif
if(-d $mydir ) then
rm -rf $mydir
endif
mkdir $mydir
foreach myfile ($myfiles)
if(-e $mydir/$myfile) then
rm -f $mydir/$myfile
endif
cp $myfile $mydir/$myfile
end
mv $mydir/Makefile.sharp $mydir/Makefile
zip $mydir.zip $mydir/*

View File

@ -1,32 +0,0 @@
#!/usr/bin/sh
mydir="generate_id"
echo $mydir
myfiles="Makefile.sharp main.c cr_generate_id.h libgenid.a readme_openssl.txt LICENSE_en.txt LICENSE_jp.txt readme.txt readme_openssl.txt"
if [ -e mydir.zip ]
then
rm -f $mydir.zip
fi
if [ -e $mydir ]
then
rm -rf $mydir
fi
mkdir $mydir
for myfile in $myfiles
do
if [ -e $mydir/$myfile ]
then
rm -f $mydir/$myfile
fi
cp $myfile $mydir/$myfile
done
mv $mydir/Makefile.sharp $mydir/Makefile
zip $mydir.zip $mydir/*