Skip to content

Commit

Permalink
kernel: Further build system improvements (3)
Browse files Browse the repository at this point in the history
  • Loading branch information
mintsuki committed Jan 3, 2024
1 parent 6640103 commit 21107d1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
2 changes: 2 additions & 0 deletions host-recipes/gcc
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ package() {
cd build
DESTDIR="${dest_dir}" make install-gcc

ln -s ${OS_TRIPLET}-gcc "${dest_dir}${prefix}/bin/${OS_TRIPLET}-cc"

strip_command=strip \
post_package_strip
}
7 changes: 3 additions & 4 deletions recipes/kernel
Original file line number Diff line number Diff line change
@@ -1,17 +1,16 @@
name=kernel
from_source=kernel
revision=1
imagedeps="git"
hostdeps="gcc binutils v"
hostdeps="gcc v"

build() {
cp -rpf "${source_dir}"/. ./

make -j${parallelism} CC=x86_64-vinix-gcc LD=x86_64-vinix-ld OBJDUMP=x86_64-vinix-objdump
make -j${parallelism} TOOLCHAIN_PREFIX=x86_64-vinix-
}

package() {
make install PREFIX="/usr" DESTDIR="${dest_dir}"
make install PREFIX="${prefix}" DESTDIR="${dest_dir}"

post_package_strip
}

0 comments on commit 21107d1

Please sign in to comment.