본문 바로가기

build

shell terminal 이 종료되어도 계속해서 작업 수행되도록 하기 원문 : http://dreamlog.tistory.com/470build 같이 시간이 걸리는 작업을 걸어놓으면, windows pc 를 off 할 수 없어서 곤란한 상황이 생길때가 있다. 혹은 실수로 터미널을 종료할 때도 있다. 아래와 같이 screen 을 사용하면 그런 우려를 덜 수 있다. 자세한 설명은 위 원문에 잘 설명되어 있고, 사용법만을 보관을 위해 적어 둔다. . screen 사용법screen 만들기.$ screen -S build1 screen 목록 보기.$ screen -listThere is a screen on: 3703.build1(2015년 11월 11일 01시 43분 38초)(Attached) 1 Socket in /var/run/screen/S-hyunmu. 사용 예)$ scr.. 더보기
makefile(.mk) flag and blank issue If your flag has [blank] end of word, "ifeq" make miss understanding. ex)CONFIG_AAA := true [blank]ifeq ($(CONFIG_AAA), true)end So we need to use "strip" sentence when we use "ifeq" ifeq ($(strip $(CONFIG_AAA)),true) 더보기
"dereferencing pointer to incomplete type" build error - root cause of build error "dereferencing pointer to incomplete type" This error occur that can't find struct. 1. didn't describe struct.2. struct use upper line before describe struct.ex) line 10 : use struct line 30 : describe struct3. miss #include file "dereferencing pointer to incomplete type"빌드애러가 났을때 원인 1. struct 를 정의하지 않았다.2. struct 를 정의하는 라인보다 위에서 사용했다.ex) line 10 : struct 사용line 30 : .. 더보기
make mrproper 외 kernel build command Kconfig 나 defconfig 들을 수정한 이후알수없게 build error 가 계속 발생할때가 있다.이때, make mrproper 를 실행해 주면 정상적으로 build 가 된다. makefile, Kconfig, defconfig 등을 수정하고 난 이후에는꼭 make mrproper 를 실행해 주자. [ 커널 빌드 명령어의 의미 ] make mrproper- 기존에 설정되어 있던 모든 의존관계를 제거하는 역할. make menuconfig- 콘솔에서 메뉴 형식으로 커널 환경 설정 시작.- make config -> 질의 응답형식으로 물어봄. (오래걸림)- make xconfig -> GUI 환경에서 사용. make dep- 커널에 설정된 내용에 따라서 소스 코드의 파일을 확인, 필요한 링크를 생.. 더보기
kconfig 에서 default 옵션에 대한 오류 kernel document 보면 The default value is only assigned to the config symbol if no other value was set by the user (via the input prompt above). If an input prompt is visible the default value is presented to the user and can be overridden by him. 이렇게 설명되어 있다. 이것을 보면 make menuconfig 로 굳이 하지 않고, defconfig 에 명시적으로 입력하면 적용되어야 할 것처럼 보인다. ex) config AAA bool default n help aaa .. 더보기