Skip to content

Commit a3812c1

Browse files
committed
First Version of Intel PCT BKMs
Signed-off-by: louie-tsai <louie.tsai@intel.com>
1 parent 0777894 commit a3812c1

7 files changed

Lines changed: 1738 additions & 0 deletions

File tree

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
# Dockerfile
2+
# Build intel-speed-select from Linux kernel v6.8 tools tree on Ubuntu.
3+
#
4+
# This image produces /usr/local/bin/intel-speed-select inside the container.
5+
# To *use* it against host hardware, you will typically need --privileged and
6+
# access to /dev/cpu/*/msr (plus relevant /sys entries) on the host.
7+
8+
FROM ubuntu:24.04
9+
10+
ARG DEBIAN_FRONTEND=noninteractive
11+
ARG KERNEL_TAG=v6.8
12+
13+
# Build dependencies and runtime basics
14+
RUN apt-get update && apt-get install -y --no-install-recommends \
15+
ca-certificates \
16+
git \
17+
make \
18+
gcc \
19+
g++ \
20+
libc6-dev \
21+
pkg-config \
22+
libcap2-bin \
23+
libnl-3-dev \
24+
libnl-genl-3-dev \
25+
libnl-route-3-dev \
26+
kmod \
27+
numactl \
28+
jq \
29+
bc \
30+
util-linux \
31+
python3 \
32+
sudo \
33+
&& rm -rf /var/lib/apt/lists/*
34+
35+
# Fetch Linux kernel source (tools tree includes intel-speed-select)
36+
WORKDIR /opt
37+
RUN git clone --depth 1 --branch ${KERNEL_TAG} https://github.com/torvalds/linux.git
38+
39+
# Build only intel-speed-select
40+
WORKDIR /opt/linux/tools/power/x86/intel-speed-select
41+
RUN make -j"$(nproc)" && make install
42+
# No ENTRYPOINT so docker compose can run arbitrary commands (bash, etc.)
43+
CMD ["intel-speed-select", "--help"]

0 commit comments

Comments
 (0)