Hello:
My target is ipcam and dvr use one common UBL.
i.e. ubl_ipcam_dvr.bin can be loaded in ipcam and dvr without rebuild or modify and it can boot ipcam and dvr .
the differences of ubl between ipcan and dvr are “pll1,pll2,and ddr2..” in device.c of separate UBL.pjt.
according to a narration in device.c of dm368 dvr:
#ifdef DM368_DVR
DEVICE_pinmuxControl(0,0xFFFFFFFF,0x00FC0000);
DEVICE_pinmuxControl(1,0xFFFFFFFF,0x00040000);
………..
#else
DEVICE_pinmuxControl(0,0xFFFFFFFF,0x00FD0000);
DEVICE_pinmuxControl(1,0xFFFFFFFF,0x00145555);
………..
endif
=========================================================
I want to modify as below:
#ifdef DM368_DVR //if device is dvr
DEVICE_pinmuxControl(0,0xFFFFFFFF,0x00FC0000);
DEVICE_pinmuxControl(1,0xFFFFFFFF,0x00040000);
………..
#ifdef IPNC_DM368 //if device is ipcam
DEVICE_pinmuxControl(0,0xFFFFFFFF,0x00FD0000);
DEVICE_pinmuxControl(1,0xFFFFFFFF,0x00145555);
………..
endif
But, I search all sources and headers in UBL.pjt, I can’t find where the keyword, “DM368_DVR” define in.
I right click the UBL.pjt and select “Open for Editing” and there is a sentence as below:
["Compiler" Settings: "BOOT_NAND"]
Options=-o3 -fr"$(Proj_dir)\NAND" -fs"$(Proj_dir)\NAND" -i"$(Proj_dir)\include" -i"$(Proj_dir)\..\..\..\Common\arch\arm926ejs\include" -i"$(Proj_dir)\..\..\..\Common\ubl\include" -i"$(Proj_dir)\..\..\..\Common\gnu\include" -i"$(Proj_dir)\..\..\Common\include" -i"$(Proj_dir)\..\..\..\Common\include" -i"$(Proj_dir)\..\..\..\Common\drivers\include" -d"UBL_NAND" -d"DM368_DVR" -me -mv5e --abi=eabi --symdebug:none
The word “DM368_DVR” only appears in this sentence…
Do you know what place I can define the keywords, “DM368_DVR” and “IPNC_DM368” let the two device identify their own word and execute their relevant act.
Or is there any other way ??
Thank you very much~~~