File tree 6 files changed +16
-13
lines changed
6 files changed +16
-13
lines changed Original file line number Diff line number Diff line change @@ -98,10 +98,8 @@ DEVICETREE_DTB_amd64=
98
98
DEVICETREE_DTB_arm64 =$(DIST ) /dtb/eve.dtb
99
99
DEVICETREE_DTB =$(DEVICETREE_DTB_$(ZARCH ) )
100
100
101
+ CONF_FILES =$(shell ls -d $(CONF_DIR ) /* )
101
102
PART_SPEC_ =efi conf imga
102
- # FIXME: this is the only rpi specific stuff left - we'll get rid of it soon
103
- CONF_FILES_FILTER_rpi =| grep -v conf/eve.dts
104
- CONF_FILES =$(shell ls -d $(CONF_DIR ) /* $(CONF_FILES_FILTER_$(findstring rpi,$(HV ) ) ) )
105
103
PART_SPEC_rpi =boot conf imga
106
104
PART_SPEC =$(PART_SPEC_$(findstring rpi,$(HV ) ) )
107
105
Original file line number Diff line number Diff line change @@ -115,12 +115,20 @@ RUN unzip -d /tmp /tmp/xr.zip ;\
115
115
make -C /linux INSTALL_MOD_PATH=/tmp/kernel-modules \
116
116
M=/tmp/xr_usb_serial_common_lnx-3.6-and-newer-pak \
117
117
modules modules_install
118
+
119
+ # Device Tree Blobs
120
+ # FIXME: we will switch to a native make INSTALL_DTBS_PATH=/tmp/kernel-modules/boot/dtb dtbs_install at some point
121
+ RUN if [ "$(uname -m)" = aarch64 ]; then \
122
+ mkdir -p /tmp/kernel-modules/boot/dtb/eve && \
123
+ ./scripts/dtc/dtc -O dtb -o /tmp/kernel-modules/boot/dtb/eve/eve.dtb -I dts /eve.dts ;\
124
+ fi
125
+
118
126
# Package all the modules up
119
127
RUN ( DVER=$(basename $(find /tmp/kernel-modules/lib/modules/ -mindepth 1 -maxdepth 1)) && \
120
128
cd /tmp/kernel-modules/lib/modules/$DVER && \
121
129
rm build source && \
122
130
ln -s /usr/src/linux-headers-$DVER build ) && \
123
- ( cd /tmp/kernel-modules && tar cf /out/kernel.tar lib )
131
+ ( cd /tmp/kernel-modules && tar cf /out/kernel.tar . )
124
132
125
133
# Headers (userspace API)
126
134
RUN mkdir -p /tmp/kernel-headers/usr && \
File renamed without changes.
Original file line number Diff line number Diff line change 1
1
FROM linuxkit/alpine:90571a1a9059f3bf33ca3431bc5396aa837a47d3
2
2
RUN apk add --no-cache \
3
3
mtools=4.0.18-r2 \
4
- dosfstools=4.1-r1 \
5
- dtc=1.4.4-r0
4
+ dosfstools=4.1-r1
6
5
COPY make-config /
7
6
RUN mkdir -p /conf/raw
8
7
Original file line number Diff line number Diff line change @@ -13,12 +13,6 @@ CONFIG_SIZE_KB=1024
13
13
# Traverse /conf to a point where we either see multiple files or no subdirectories
14
14
(cd /conf; while cd " $( echo ./* ) " > /dev/null 2>&1 ; do true ; done ; cp -r ./* /conf ; rm -rf /conf/raw)
15
15
16
- DTS=/conf/eve.dts
17
- if [ -f " $DTS " ]; then
18
- [ " $ZARCH " = arm64 ] && dtc -O dtb -o /conf/eve.dtb -I dts " $DTS "
19
- rm " $DTS "
20
- fi
21
-
22
16
#
23
17
# Create Config image
24
18
#
Original file line number Diff line number Diff line change @@ -116,12 +116,16 @@ RUN unzip -d /tmp /tmp/xr.zip ;\
116
116
make -C /linux INSTALL_MOD_PATH=/tmp/kernel-modules \
117
117
M=/tmp/xr_usb_serial_common_lnx-3.6-and-newer-pak \
118
118
modules modules_install
119
+
120
+ # Device Tree Blobs
121
+ RUN if [ "$(uname -m)" = aarch64 ];then make INSTALL_DTBS_PATH=/tmp/kernel-modules/boot/dtb dtbs_install ;fi
122
+
119
123
# Package all the modules up
120
124
RUN ( DVER=$(basename $(find /tmp/kernel-modules/lib/modules/ -mindepth 1 -maxdepth 1)) && \
121
125
cd /tmp/kernel-modules/lib/modules/$DVER && \
122
126
rm build source && \
123
127
ln -s /usr/src/linux-headers-$DVER build ) && \
124
- ( cd /tmp/kernel-modules && tar cf /out/kernel.tar lib )
128
+ ( cd /tmp/kernel-modules && tar cf /out/kernel.tar . )
125
129
126
130
# Headers (userspace API)
127
131
RUN mkdir -p /tmp/kernel-headers/usr && \
You can’t perform that action at this time.
0 commit comments