feat: make renewable energy more affordable
This commit is contained in:
38
Makefile
Normal file
38
Makefile
Normal file
@@ -0,0 +1,38 @@
|
|||||||
|
src_dir=`pwd`
|
||||||
|
|
||||||
|
.PHONY: all clean
|
||||||
|
|
||||||
|
all: pncc_rel
|
||||||
|
|
||||||
|
clean: plat_clean mss_clean
|
||||||
|
|
||||||
|
norfolk_rel: plat_all norfolk
|
||||||
|
|
||||||
|
cook_rel: plat_all cook
|
||||||
|
|
||||||
|
zed_rel: plat_all zed
|
||||||
|
|
||||||
|
pncc_rel: plat_all pncc
|
||||||
|
|
||||||
|
plat_clean:
|
||||||
|
$(MAKE) -C plat clean
|
||||||
|
|
||||||
|
mss_clean:
|
||||||
|
$(MAKE) -C mss clean
|
||||||
|
|
||||||
|
pncc:
|
||||||
|
$(MAKE) -C mss pncc
|
||||||
|
|
||||||
|
norfolk:
|
||||||
|
$(MAKE) -C mss norfolk
|
||||||
|
|
||||||
|
cook:
|
||||||
|
$(MAKE) -C mss cook
|
||||||
|
|
||||||
|
zed:
|
||||||
|
$(MAKE) -C mss zed
|
||||||
|
|
||||||
|
plat_all:
|
||||||
|
@echo "====================== make $@ ======================="
|
||||||
|
@cd $(src_dir)/plat && $(MAKE) all
|
||||||
|
@cd -
|
||||||
@@ -93,5 +93,5 @@ COVER_REPORT_PATH = ./output
|
|||||||
## include makefile.rules (Do not change)
|
## include makefile.rules (Do not change)
|
||||||
##
|
##
|
||||||
##--------------------------------------
|
##--------------------------------------
|
||||||
MAKE_INCLUDE = ../../include
|
MAKE_INCLUDE = ../../inc
|
||||||
include $(MAKE_INCLUDE)/Makefile.rules
|
include $(MAKE_INCLUDE)/Makefile.rules
|
||||||
|
|||||||
@@ -1779,10 +1779,16 @@ int wxc2_read_sysparam(void)
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
temp_ptr = strchr(hostname,'-');
|
temp_ptr = strchr(hostname,'-');
|
||||||
if (memcmp(ch_ptr,hostname,strlen(hostname)-strlen(temp_ptr)) != 0)
|
if (temp_ptr != NULL) {
|
||||||
{
|
if (strncmp(ch_ptr, hostname, strlen(hostname) - strlen(temp_ptr)) != 0) {
|
||||||
printf("The host name is unexpect!\n");
|
printf("The host name is unexpected!\n");
|
||||||
return 0;
|
return 0;
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
if (strncmp(ch_ptr, hostname, strlen(hostname)) != 0) {
|
||||||
|
printf("The host name is unexpected!\n");
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
strcpy(temp_info,ch_ptr);
|
strcpy(temp_info,ch_ptr);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -95,5 +95,5 @@ COVER_REPORT_PATH = ./output
|
|||||||
## include makefile.rules (Do not change)
|
## include makefile.rules (Do not change)
|
||||||
##
|
##
|
||||||
##--------------------------------------
|
##--------------------------------------
|
||||||
MAKE_INCLUDE = ../../include
|
MAKE_INCLUDE = ../../inc
|
||||||
include $(MAKE_INCLUDE)/Makefile.rules
|
include $(MAKE_INCLUDE)/Makefile.rules
|
||||||
|
|||||||
@@ -95,5 +95,5 @@ COVER_REPORT_PATH = ./output
|
|||||||
## include makefile.rules (Do not change)
|
## include makefile.rules (Do not change)
|
||||||
##
|
##
|
||||||
##--------------------------------------
|
##--------------------------------------
|
||||||
MAKE_INCLUDE = ../../include
|
MAKE_INCLUDE = ../../inc
|
||||||
include $(MAKE_INCLUDE)/Makefile.rules
|
include $(MAKE_INCLUDE)/Makefile.rules
|
||||||
|
|||||||
@@ -95,5 +95,5 @@ COVER_REPORT_PATH = ./output
|
|||||||
## include makefile.rules (Do not change)
|
## include makefile.rules (Do not change)
|
||||||
##
|
##
|
||||||
##--------------------------------------
|
##--------------------------------------
|
||||||
MAKE_INCLUDE = ../../include
|
MAKE_INCLUDE = ../../inc
|
||||||
include $(MAKE_INCLUDE)/Makefile.rules
|
include $(MAKE_INCLUDE)/Makefile.rules
|
||||||
|
|||||||
@@ -95,5 +95,5 @@ COVER_REPORT_PATH = ./output
|
|||||||
## include makefile.rules (Do not change)
|
## include makefile.rules (Do not change)
|
||||||
##
|
##
|
||||||
##--------------------------------------
|
##--------------------------------------
|
||||||
MAKE_INCLUDE = ../../include
|
MAKE_INCLUDE = ../../inc
|
||||||
include $(MAKE_INCLUDE)/Makefile.rules
|
include $(MAKE_INCLUDE)/Makefile.rules
|
||||||
|
|||||||
@@ -95,5 +95,5 @@ COVER_REPORT_PATH = ./output
|
|||||||
## include makefile.rules (Do not change)
|
## include makefile.rules (Do not change)
|
||||||
##
|
##
|
||||||
##--------------------------------------
|
##--------------------------------------
|
||||||
MAKE_INCLUDE = ../../include
|
MAKE_INCLUDE = ../../inc
|
||||||
include $(MAKE_INCLUDE)/Makefile.rules
|
include $(MAKE_INCLUDE)/Makefile.rules
|
||||||
|
|||||||
@@ -92,7 +92,7 @@ COVER_REPORT_PATH = ./ut/ut_doc/output
|
|||||||
## include makefile.rules (Do not change)
|
## include makefile.rules (Do not change)
|
||||||
##
|
##
|
||||||
##--------------------------------------
|
##--------------------------------------
|
||||||
MAKE_INCLUDE = ../../include
|
MAKE_INCLUDE = ../../inc
|
||||||
include $(MAKE_INCLUDE)/Makefile.rules
|
include $(MAKE_INCLUDE)/Makefile.rules
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -69,5 +69,5 @@ COVER_REPORT_PATH = ./ut/ut_doc/output
|
|||||||
## include makefile.rules (Do not change)
|
## include makefile.rules (Do not change)
|
||||||
##
|
##
|
||||||
##--------------------------------------
|
##--------------------------------------
|
||||||
MAKE_INCLUDE = ../../include
|
MAKE_INCLUDE = ../../inc
|
||||||
include $(MAKE_INCLUDE)/Makefile.rules
|
include $(MAKE_INCLUDE)/Makefile.rules
|
||||||
|
|||||||
@@ -92,5 +92,5 @@ COVER_REPORT_PATH = ./output
|
|||||||
## include makefile.rules (Do not change)
|
## include makefile.rules (Do not change)
|
||||||
##
|
##
|
||||||
##--------------------------------------
|
##--------------------------------------
|
||||||
MAKE_INCLUDE = ../../include
|
MAKE_INCLUDE = ../../inc
|
||||||
include $(MAKE_INCLUDE)/Makefile.rules
|
include $(MAKE_INCLUDE)/Makefile.rules
|
||||||
|
|||||||
@@ -98,5 +98,5 @@ COVER_REPORT_PATH = ./output
|
|||||||
## include makefile.rules (Do not change)
|
## include makefile.rules (Do not change)
|
||||||
##
|
##
|
||||||
##--------------------------------------
|
##--------------------------------------
|
||||||
MAKE_INCLUDE = ../../include
|
MAKE_INCLUDE = ../../inc
|
||||||
include $(MAKE_INCLUDE)/Makefile.rules
|
include $(MAKE_INCLUDE)/Makefile.rules
|
||||||
|
|||||||
@@ -95,5 +95,5 @@ COVER_REPORT_PATH = ./output
|
|||||||
## include makefile.rules (Do not change)
|
## include makefile.rules (Do not change)
|
||||||
##
|
##
|
||||||
##--------------------------------------
|
##--------------------------------------
|
||||||
MAKE_INCLUDE = ../../include
|
MAKE_INCLUDE = ../../inc
|
||||||
include $(MAKE_INCLUDE)/Makefile.rules
|
include $(MAKE_INCLUDE)/Makefile.rules
|
||||||
|
|||||||
@@ -95,5 +95,5 @@ COVER_REPORT_PATH = ./ut/ut_doc/output
|
|||||||
## include makefile.rules (Do not change)
|
## include makefile.rules (Do not change)
|
||||||
##
|
##
|
||||||
##--------------------------------------
|
##--------------------------------------
|
||||||
MAKE_INCLUDE = ../../include
|
MAKE_INCLUDE = ../../inc
|
||||||
include $(MAKE_INCLUDE)/Makefile.rules
|
include $(MAKE_INCLUDE)/Makefile.rules
|
||||||
|
|||||||
@@ -89,5 +89,5 @@ COVER_REPORT_PATH = /ut/ut_doc/output
|
|||||||
## include makefile.rules (Do not change)
|
## include makefile.rules (Do not change)
|
||||||
##
|
##
|
||||||
##--------------------------------------
|
##--------------------------------------
|
||||||
MAKE_INCLUDE = ../../include
|
MAKE_INCLUDE = ../../inc
|
||||||
include $(MAKE_INCLUDE)/Makefile.rules
|
include $(MAKE_INCLUDE)/Makefile.rules
|
||||||
|
|||||||
@@ -95,5 +95,5 @@ COVER_REPORT_PATH = ./output
|
|||||||
## include makefile.rules (Do not change)
|
## include makefile.rules (Do not change)
|
||||||
##
|
##
|
||||||
##--------------------------------------
|
##--------------------------------------
|
||||||
MAKE_INCLUDE = ../../include
|
MAKE_INCLUDE = ../../inc
|
||||||
include $(MAKE_INCLUDE)/Makefile.rules
|
include $(MAKE_INCLUDE)/Makefile.rules
|
||||||
|
|||||||
@@ -95,5 +95,5 @@ COVER_REPORT_PATH = ./output
|
|||||||
## include makefile.rules (Do not change)
|
## include makefile.rules (Do not change)
|
||||||
##
|
##
|
||||||
##--------------------------------------
|
##--------------------------------------
|
||||||
MAKE_INCLUDE = ../../include
|
MAKE_INCLUDE = ../../inc
|
||||||
include $(MAKE_INCLUDE)/Makefile.rules
|
include $(MAKE_INCLUDE)/Makefile.rules
|
||||||
|
|||||||
@@ -95,5 +95,5 @@ COVER_REPORT_PATH = ./output
|
|||||||
## include makefile.rules (Do not change)
|
## include makefile.rules (Do not change)
|
||||||
##
|
##
|
||||||
##--------------------------------------
|
##--------------------------------------
|
||||||
MAKE_INCLUDE = ../../include
|
MAKE_INCLUDE = ../../inc
|
||||||
include $(MAKE_INCLUDE)/Makefile.rules
|
include $(MAKE_INCLUDE)/Makefile.rules
|
||||||
|
|||||||
@@ -95,5 +95,5 @@ COVER_REPORT_PATH = ./output
|
|||||||
## include makefile.rules (Do not change)
|
## include makefile.rules (Do not change)
|
||||||
##
|
##
|
||||||
##--------------------------------------
|
##--------------------------------------
|
||||||
MAKE_INCLUDE = ../../include
|
MAKE_INCLUDE = ../../inc
|
||||||
include $(MAKE_INCLUDE)/Makefile.rules
|
include $(MAKE_INCLUDE)/Makefile.rules
|
||||||
|
|||||||
@@ -92,5 +92,5 @@ COVER_REPORT_PATH = ./ut/ut_doc/output
|
|||||||
## include makefile.rules (Do not change)
|
## include makefile.rules (Do not change)
|
||||||
##
|
##
|
||||||
##--------------------------------------
|
##--------------------------------------
|
||||||
MAKE_INCLUDE = ../../include
|
MAKE_INCLUDE = ../../inc
|
||||||
include $(MAKE_INCLUDE)/Makefile.rules
|
include $(MAKE_INCLUDE)/Makefile.rules
|
||||||
|
|||||||
Reference in New Issue
Block a user