전처리
Posts
14 posts[라즈베리파이] 커널 빌드 & 컴파일 환경 설정
라즈베리파이 리눅스 커널 컴파일 명령어 출처https://wikidocs.net/3243https://www.raspberrypi.org/documentation/linux/kernel/building.md 아래와 같이 폴더를 하나 생성합니다./home001/austin.kim/src/raspberry_kernel 소스 코드는 아래 명령어로 다운로드 받습니다.git clone --depth=1 소스 코드를 다 받으면 linux란 폴더가 생깁니다.austin.kim@LGEARND7B16:~/src/raspberry_kernel$ ls -ltotal 4drwxr-xr-x 25 austin.kim home001 4096 Feb 12 08:35 linux 크로스컴파일 환경 설정아래 명령어로 라즈베리 파이 크
[라즈베리파이] 리눅스 커널: 전처리 파일 추출
라즈베리파이3 용 커널 코드를 다운로드 받고 아래 패치를 적용하여 커널 빌드를 하면 전처리 파일을 추출할 수 있습니다.austin.kim@LGEARND7B16:~/src/raspberry_kernel/linux$ git diff Makefilediff --git a/Makefile b/Makefileindex 4a7e6df..313dbbe 100644--- a/Makefile+++ b/Makefile@@ -395,6 +395,7 @@ KBUILD_CFLAGS := -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs \ -fno-strict-aliasing -fno-common \ -Werror-implic

